aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-02-04 10:32:35 (GMT)
committerJouni Malinen <j@w1.fi>2012-02-04 10:32:35 (GMT)
commit96efeeb66bd8762ab9fccd9fe2b5c3e276ff220c (patch)
tree2747d1dc54f0aa8da5e2771019e578467edf1847 /wpa_supplicant
parentd93dfbd588eb3c16f4ed1b7af825c9c1c9bf7f6d (diff)
downloadhostap-96efeeb66bd8762ab9fccd9fe2b5c3e276ff220c.zip
hostap-96efeeb66bd8762ab9fccd9fe2b5c3e276ff220c.tar.gz
hostap-96efeeb66bd8762ab9fccd9fe2b5c3e276ff220c.tar.bz2
Use PMKSA cache entries with only a single network context
When looking for PMKSA cache entries to use with a new association, only accept entries created with the same network block that was used to create the cache entry. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/wpa_supplicant.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 9acc89a..62545e2 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -1698,6 +1698,8 @@ void wpa_supplicant_select_network(struct wpa_supplicant *wpa_s,
return;
}
+ if (ssid)
+ wpa_s->current_ssid = ssid;
wpa_s->connect_without_scan = NULL;
wpa_s->disconnected = 0;
wpa_s->reassociate = 1;