esp_wifi:Enable wpsreg to initialize in APSTA mode

This commit is contained in:
Shreyas Sheth
2023-04-03 03:51:14 +05:30
parent 197c888611
commit 5524aad43f
6 changed files with 72 additions and 27 deletions

View File

@@ -181,8 +181,15 @@ void wpa_ap_get_peer_spp_msg(void *sm_data, bool *spp_cap, bool *spp_req)
bool wpa_deattach(void)
{
struct wpa_sm *sm = &gWpaSm;
esp_wpa3_free_sae_data();
esp_wifi_sta_wpa2_ent_disable();
if (sm->wpa_sm_wpa2_ent_disable) {
sm->wpa_sm_wpa2_ent_disable();
}
if (sm->wpa_sm_wps_disable) {
sm->wpa_sm_wps_disable();
}
wpa_sm_deinit();
return true;
}