aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorMoshe Benji <Moshe.Benji@intel.com>2016-09-05 14:32:55 (GMT)
committerJouni Malinen <j@w1.fi>2016-09-22 20:31:19 (GMT)
commit14220fe64c4e8180380d9fd15a985aa699b00e2f (patch)
tree21b1d4eb03254ea95942265eece90a32993fee61 /wpa_supplicant/events.c
parentb223b55345f73936f9454ec264013b3a4f7a9c9c (diff)
downloadhostap-14220fe64c4e8180380d9fd15a985aa699b00e2f.zip
hostap-14220fe64c4e8180380d9fd15a985aa699b00e2f.tar.gz
hostap-14220fe64c4e8180380d9fd15a985aa699b00e2f.tar.bz2
Flush the BSS (scan) entries when an interface becomes disabled
When an interface becomes disabled (e.g., when RF-kill becomes blocked) we should clear the stored scan results to avoid maintaining stale information. Fix this by flushing the BSS entries when an interface becomes disabled. Signed-off-by: Moshe Benji <moshe.benji@intel.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index ef62d70..ba30780 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -3959,6 +3959,7 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
wpa_s, WLAN_REASON_DEAUTH_LEAVING, 1);
}
wpa_supplicant_mark_disassoc(wpa_s);
+ wpa_bss_flush(wpa_s);
radio_remove_works(wpa_s, NULL, 0);
wpa_supplicant_set_state(wpa_s, WPA_INTERFACE_DISABLED);