wpa_supplicant: Deinit wpa2 states in wifi deinit
#include "esp_wifi_driver.h"
#include "esp_private/wifi.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,
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)
{
+ esp_wifi_sta_wpa2_ent_disable();
wpa_sm_deinit();
return true;
}
