esp_wifi: Clear old keys before going for new connection

This commit is contained in:
Kapil Gupta
2022-07-11 10:34:15 +05:30
parent 445e5ee685
commit ff00a1c7a2
3 changed files with 5 additions and 4 deletions

View File

@@ -68,9 +68,7 @@ int wpa_ether_send(void *ctx, const u8 *dest, u16 proto,
os_memcpy(eth->h_source, gWpaSm.own_addr, ETH_ALEN);
eth->h_proto = host_to_be16(proto);
esp_wifi_internal_tx(WIFI_IF_STA, buffer, sizeof(struct l2_ethhdr) + data_len);
return ESP_OK;
return esp_wifi_internal_tx(WIFI_IF_STA, buffer, sizeof(struct l2_ethhdr) + data_len);
}
int hostapd_send_eapol(const u8 *source, const u8 *sta_addr,