aboutsummaryrefslogtreecommitdiffstats
path: root/src/rsn_supp/preauth.c
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 /src/rsn_supp/preauth.c
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 'src/rsn_supp/preauth.c')
-rw-r--r--src/rsn_supp/preauth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rsn_supp/preauth.c b/src/rsn_supp/preauth.c
index fefca83..7812331 100644
--- a/src/rsn_supp/preauth.c
+++ b/src/rsn_supp/preauth.c
@@ -1,6 +1,6 @@
/*
* RSN pre-authentication (supplicant)
- * Copyright (c) 2003-2010, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2003-2012, Jouni Malinen <j@w1.fi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -311,7 +311,7 @@ void rsn_preauth_candidate_process(struct wpa_sm *sm)
dl_list_for_each_safe(candidate, n, &sm->pmksa_candidates,
struct rsn_pmksa_candidate, list) {
struct rsn_pmksa_cache_entry *p = NULL;
- p = pmksa_cache_get(sm->pmksa, candidate->bssid, NULL);
+ p = pmksa_cache_get(sm->pmksa, candidate->bssid, NULL, NULL);
if (os_memcmp(sm->bssid, candidate->bssid, ETH_ALEN) != 0 &&
(p == NULL || p->opportunistic)) {
wpa_msg(sm->ctx->msg_ctx, MSG_DEBUG, "RSN: PMKSA "
@@ -458,7 +458,7 @@ void rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid,
if (wpa_parse_wpa_ie(rsn, 2 + rsn[1], &ie))
return;
- pmksa = pmksa_cache_get(sm->pmksa, bssid, NULL);
+ pmksa = pmksa_cache_get(sm->pmksa, bssid, NULL, NULL);
if (pmksa && (!pmksa->opportunistic ||
!(ie.capabilities & WPA_CAPABILITY_PREAUTH)))
return;