aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bss.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-01-02 21:03:31 (GMT)
committerJouni Malinen <j@w1.fi>2014-01-02 21:03:31 (GMT)
commit949938aadf54735f29c340caf667e7505840b3c7 (patch)
treeaacfeedfced0f7ba25e0af3578ab4a499264c673 /wpa_supplicant/bss.c
parenta1a31b6c3f9f87f87e232a819065042c85092726 (diff)
downloadhostap-949938aadf54735f29c340caf667e7505840b3c7.zip
hostap-949938aadf54735f29c340caf667e7505840b3c7.tar.gz
hostap-949938aadf54735f29c340caf667e7505840b3c7.tar.bz2
Ask driver to report only new scan results if requested
If the BSS table within wpa_supplicant is flushed, request the driver to flush its own scan result table during the next scan. This can avoid unexpected old BSS entries showing up after BSS_FLUSH or FLUSH command in cases where the driver may maintain its internal cache of scan results (e.g., cfg80211 BSS table persists at least for 15 seconds). In addition to doing this automatically on BSS_FLUSH/FLUSH, a new SCAN command argument, only_new=1, can be used to request a manual scan request to do same. Though, it should be noted that this maintains the BSS table within wpa_supplicant. BSS_FLUSH followed by SCAN command can be used to clear all BSS entries from both the driver and wpa_supplicant. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/bss.c')
-rw-r--r--wpa_supplicant/bss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c
index 033384c..9ea6903 100644
--- a/wpa_supplicant/bss.c
+++ b/wpa_supplicant/bss.c
@@ -820,6 +820,8 @@ void wpa_bss_flush(struct wpa_supplicant *wpa_s)
{
struct wpa_bss *bss, *n;
+ wpa_s->clear_driver_scan_cache = 1;
+
if (wpa_s->bss.next == NULL)
return; /* BSS table not yet initialized */