mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
wpa_supplicant : Fix occasional crash during btm roam.
Fix crash due to premature deallocation of neighbour report elements by scan_done. Post event to btm_rrm_t task to handle scan_done serially rather than when btm_rrm_t task is processing btm request rx frame.
This commit is contained in:
parent
9e88f790ff
commit
6c14120c7f
@ -21,6 +21,7 @@
|
||||
#include "esp_scan_i.h"
|
||||
#include "common/wnm_sta.h"
|
||||
#include "esp_scan_i.h"
|
||||
#include "esp_common_i.h"
|
||||
|
||||
extern struct wpa_supplicant g_wpa_supp;
|
||||
|
||||
@ -34,7 +35,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);
|
||||
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*/
|
||||
}
|
||||
|
||||
#if defined(CONFIG_WPA_11KV_SUPPORT)
|
||||
|
Loading…
Reference in New Issue
Block a user