fix(wifi):Fix for setting wps status fail when connection fails

This commit is contained in:
aditi_lonkar
2023-11-06 11:17:01 +05:30
committed by jack
parent e0991facf5
commit 2130416e2e
5 changed files with 36 additions and 1 deletions

View File

@@ -33,6 +33,7 @@
#include "esp_owe_i.h"
#include "esp_wps.h"
#include "esp_wps_i.h"
#include "eap_server/eap.h"
#include "eapol_auth/eapol_auth_sm.h"
#include "ap/ieee802_1x.h"
@@ -303,6 +304,11 @@ static void wpa_sta_disconnected_cb(uint8_t reason_code)
}
break;
}
struct wps_sm_funcs *wps_sm_cb = wps_get_wps_sm_cb();
if (wps_sm_cb && wps_sm_cb->wps_sm_notify_deauth) {
wps_sm_cb->wps_sm_notify_deauth();
}
#ifdef CONFIG_OWE_STA
owe_deinit();
#endif /* CONFIG_OWE_STA */