aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bss.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-01-02 14:59:19 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-02 14:59:19 (GMT)
commit8f770587d9b5995140860e772a17a1ba83e07783 (patch)
treee0949d52972a03d57bdcead69f317377648a942c /wpa_supplicant/bss.c
parenta1fd2ce54e2241347faf7060234a37f051ce1324 (diff)
downloadhostap-8f770587d9b5995140860e772a17a1ba83e07783.zip
hostap-8f770587d9b5995140860e772a17a1ba83e07783.tar.gz
hostap-8f770587d9b5995140860e772a17a1ba83e07783.tar.bz2
Maintain a pointer to the current BSS table entry
Diffstat (limited to 'wpa_supplicant/bss.c')
-rw-r--r--wpa_supplicant/bss.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c
index a981f89..62086a4 100644
--- a/wpa_supplicant/bss.c
+++ b/wpa_supplicant/bss.c
@@ -271,7 +271,8 @@ static void wpa_bss_timeout(void *eloop_ctx, void *timeout_ctx)
t.sec -= WPA_BSS_EXPIRATION_AGE;
dl_list_for_each_safe(bss, n, &wpa_s->bss, struct wpa_bss, list) {
- if (os_memcmp(bss->bssid, wpa_s->bssid, ETH_ALEN) == 0 ||
+ if (bss == wpa_s->current_bss ||
+ os_memcmp(bss->bssid, wpa_s->bssid, ETH_ALEN) == 0 ||
os_memcmp(bss->bssid, wpa_s->pending_bssid, ETH_ALEN) == 0)
continue; /* do not expire BSSes that are in use */