diff mbox

[02/18] wpa_supplicant: flush the BSS entries when an interface becomes disabled

Message ID 1473085991-5073-2-git-send-email-andrei.otcheretianski@intel.com
State Accepted
Headers show

Commit Message

Andrei Otcheretianski Sept. 5, 2016, 2:32 p.m. UTC
From: Moshe Benji <Moshe.Benji@intel.com>

When an interface becomes disabled (e.g. when RF-kill becomes
blocked) we should clear the stored scan results.

Fix this by flushing the BSS entries when an interface becomes
disabled.

Signed-off-by: Moshe Benji <moshe.benji@intel.com>
---
 wpa_supplicant/events.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Jouni Malinen Sept. 22, 2016, 9:26 p.m. UTC | #1
On Mon, Sep 05, 2016 at 05:32:55PM +0300, andrei.otcheretianski@intel.com wrote:
> When an interface becomes disabled (e.g. when RF-kill becomes
> blocked) we should clear the stored scan results.
> 
> Fix this by flushing the BSS entries when an interface becomes
> disabled.

Thanks, applied.
diff mbox

Patch

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);