mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
Merge branch 'bugfix/btm_scan_done_crash_v44' into 'release/v4.4'
fix(wpa_supplicant) : Fix occasional crash during btm roam. See merge request espressif/esp-idf!24733
This commit is contained in:
@ -20,6 +20,7 @@
|
|||||||
#include "esp_common_i.h"
|
#include "esp_common_i.h"
|
||||||
#include "common/wnm_sta.h"
|
#include "common/wnm_sta.h"
|
||||||
#include "esp_scan_i.h"
|
#include "esp_scan_i.h"
|
||||||
|
#include "esp_common_i.h"
|
||||||
|
|
||||||
extern struct wpa_supplicant g_wpa_supp;
|
extern struct wpa_supplicant g_wpa_supp;
|
||||||
|
|
||||||
@ -33,7 +34,13 @@ static void scan_done_event_handler(void *arg, STATUS status)
|
|||||||
wpa_s->type &= ~(1 << WLAN_FC_STYPE_BEACON) & ~(1 << WLAN_FC_STYPE_PROBE_RESP);
|
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_wifi_register_mgmt_frame_internal(wpa_s->type, wpa_s->subtype);
|
||||||
}
|
}
|
||||||
esp_supplicant_handle_scan_done_evt();
|
#ifdef CONFIG_SUPPLICANT_TASK
|
||||||
|
if (esp_supplicant_post_evt(SIG_SUPPLICANT_SCAN_DONE, 0) != 0) {
|
||||||
|
wpa_printf(MSG_ERROR, "Posting of scan done failed!");
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
esp_supplicant_handle_scan_done_evt();
|
||||||
|
#endif /*CONFIG_SUPPLICANT_TASK*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static void handle_wnm_scan_done(struct wpa_supplicant *wpa_s)
|
static void handle_wnm_scan_done(struct wpa_supplicant *wpa_s)
|
||||||
|
Reference in New Issue
Block a user