Merge branch 'bugfix/clean_wpa2_wifi_deinit' into 'master'

wpa_supplicant: Deinit wpa2 states in wifi deinit

See merge request espressif/esp-idf!10103
This commit is contained in:
Jiang Jiang Jian 2020-08-26 15:21:44 +08:00
commit 4dcaa0e6f4

View File

@ -34,6 +34,7 @@
#include "esp_wifi_driver.h" #include "esp_wifi_driver.h"
#include "esp_private/wifi.h" #include "esp_private/wifi.h"
#include "esp_wpa3_i.h" #include "esp_wpa3_i.h"
#include "esp_wpa2.h"
void wpa_install_key(enum wpa_alg alg, u8 *addr, int key_idx, int set_tx, void wpa_install_key(enum wpa_alg alg, u8 *addr, int key_idx, int set_tx,
u8 *seq, size_t seq_len, u8 *key, size_t key_len, int key_entry_valid) u8 *seq, size_t seq_len, u8 *key, size_t key_len, int key_entry_valid)
@ -148,6 +149,7 @@ bool wpa_ap_rx_eapol(void *hapd_data, void *sm_data, u8 *data, size_t data_len)
bool wpa_deattach(void) bool wpa_deattach(void)
{ {
esp_wifi_sta_wpa2_ent_disable();
wpa_sm_deinit(); wpa_sm_deinit();
return true; return true;
} }