mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Remove unnecessary code from disconnect handler
This commit is contained in:
parent
6729f870b9
commit
198a4335f2
@ -235,7 +235,6 @@ static void supplicant_sta_disconn_handler(void* arg, esp_event_base_t event_bas
|
||||
int32_t event_id, void* event_data)
|
||||
{
|
||||
struct wpa_supplicant *wpa_s = &g_wpa_supp;
|
||||
wifi_event_sta_disconnected_t *disconn = event_data;
|
||||
|
||||
#ifdef CONFIG_WPA_11KV_SUPPORT
|
||||
wpas_rrm_reset(wpa_s);
|
||||
@ -244,10 +243,6 @@ static void supplicant_sta_disconn_handler(void* arg, esp_event_base_t event_bas
|
||||
if (wpa_s->current_bss) {
|
||||
wpa_s->current_bss = NULL;
|
||||
}
|
||||
|
||||
if (disconn->reason != WIFI_REASON_ROAMING) {
|
||||
clear_bssid_flag(wpa_s);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_IEEE80211R
|
||||
|
Loading…
Reference in New Issue
Block a user