wpa_supplicant: Remove scan done event in task

This commit is contained in:
Kapil Gupta
2022-04-06 09:49:53 +05:30
committed by BOT
parent 8ef2842074
commit 6d3dc2e616
2 changed files with 3 additions and 3 deletions

View File

@ -276,7 +276,6 @@ int esp_supplicant_common_init(struct wpa_funcs *wpa_cb)
wpa_s->type = 0;
wpa_s->subtype = 0;
wpa_s->type |= (1 << WLAN_FC_STYPE_BEACON) | (1 << WLAN_FC_STYPE_PROBE_RESP);
esp_wifi_register_mgmt_frame_internal(wpa_s->type, wpa_s->subtype);
wpa_cb->wpa_sta_rx_mgmt = ieee80211_handle_rx_frm;
return 0;

View File

@ -29,6 +29,7 @@
#include "common/ieee802_11_common.h"
#include "esp_supplicant/esp_common_i.h"
#include "common/wnm_sta.h"
#include "esp_scan_i.h"
extern struct wpa_supplicant g_wpa_supp;
@ -38,11 +39,11 @@ static void scan_done_event_handler(void *arg, STATUS status)
/* update last scan time */
wpa_s->scan_start_tsf = esp_wifi_get_tsf_time(WIFI_IF_STA);
if (!wpa_s->scanning) {
if (wpa_s->scanning) {
wpa_s->type &= ~(1 << WLAN_FC_STYPE_BEACON) & ~(1 << WLAN_FC_STYPE_PROBE_RESP);
esp_wifi_register_mgmt_frame_internal(wpa_s->type, wpa_s->subtype);
}
esp_supplicant_post_evt(SIG_SUPPLICANT_SCAN_DONE, 0);
esp_supplicant_handle_scan_done_evt();
}
static void esp_supp_handle_wnm_scan_done(struct wpa_supplicant *wpa_s)