From: Avraham Stern Date: Wed, 14 Oct 2015 09:26:31 +0000 (+0300) Subject: Do not expire scan results based on aborted scan X-Git-Tag: hostap_2_6~1512 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a21fd37f9ea18c584103543afe51ee35c5a1313;p=thirdparty%2Fhostap.git 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 --- diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c index 704ee7e83..2003c6648 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) {