mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-26 02:02:02 +00:00
fix(wifi):Fix for setting wps status fail when connection fails
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user