aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bss.c
diff options
context:
space:
mode:
authorAvraham Stern <avraham.stern@intel.com>2015-10-14 09:26:31 (GMT)
committerJouni Malinen <j@w1.fi>2015-10-14 18:12:28 (GMT)
commit1a21fd37f9ea18c584103543afe51ee35c5a1313 (patch)
tree46c15dfee262c10c063313b0e7dac12aad7fc78d /wpa_supplicant/bss.c
parent0aed3f5a8019db2f1bbe802a4543fba90af58e13 (diff)
downloadhostap-1a21fd37f9ea18c584103543afe51ee35c5a1313.zip
hostap-1a21fd37f9ea18c584103543afe51ee35c5a1313.tar.gz
hostap-1a21fd37f9ea18c584103543afe51ee35c5a1313.tar.bz2
Do not expire scan results based on aborted scan
Do not expire scan results entries based on scan results from a scan that was aborted. The aborted scan did not scan all the requested channels or SSIDs, so the fact that a BSS is missing from the scan results does not mean it is not available. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Diffstat (limited to 'wpa_supplicant/bss.c')
-rw-r--r--wpa_supplicant/bss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c
index 704ee7e..2003c66 100644
--- a/wpa_supplicant/bss.c
+++ b/wpa_supplicant/bss.c
@@ -799,7 +799,7 @@ void wpa_bss_update_end(struct wpa_supplicant *wpa_s, struct scan_info *info,
struct wpa_bss *bss, *n;
os_get_reltime(&wpa_s->last_scan);
- if (!new_scan)
+ if ((info && info->aborted) || !new_scan)
return; /* do not expire entries without new scan */
dl_list_for_each_safe(bss, n, &wpa_s->bss, struct wpa_bss, list) {