forked from espressif/esp-idf
fix(esp_wifi): Deinit WPS registrar during hostapd deinit
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "esp_wifi_driver.h"
|
||||
#include "esp_wifi_types.h"
|
||||
#include "esp_wps.h"
|
||||
#include "esp_wps_i.h"
|
||||
|
||||
struct hostapd_data *global_hapd;
|
||||
|
||||
@@ -152,7 +153,7 @@ bool hostap_deinit(void *data)
|
||||
#ifdef CONFIG_WPS_REGISTRAR
|
||||
if (esp_wifi_get_wps_type_internal () != WPS_TYPE_DISABLE ||
|
||||
esp_wifi_get_wps_status_internal() != WPS_STATUS_DISABLE) {
|
||||
esp_wifi_ap_wps_disable();
|
||||
wifi_ap_wps_disable_internal();
|
||||
}
|
||||
#endif /* CONFIG_WPS_REGISTRAR */
|
||||
|
||||
|
@@ -147,3 +147,4 @@ static inline int wps_set_status(uint32_t status)
|
||||
bool is_wps_enabled(void);
|
||||
int wps_init_cfg_pin(struct wps_config *cfg);
|
||||
void wifi_station_wps_eapol_start_handle(void *data, void *user_ctx);
|
||||
int wifi_ap_wps_disable_internal(void);
|
||||
|
Reference in New Issue
Block a user