fix(esp_wifi): Deinit WPS registrar during hostapd deinit

This commit is contained in:
Kapil Gupta
2024-10-07 10:53:28 +05:30
committed by BOT
parent 7f9e2044df
commit ab99551f8c
2 changed files with 3 additions and 1 deletions

View File

@@ -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 */

View File

@@ -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);