aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2005-06-24 04:26:54 (GMT)
committerJouni Malinen <j@w1.fi>2005-06-24 04:26:54 (GMT)
commitdd860fc523c0829257871f8fa0e67984e0f19b7c (patch)
tree4ce8c92cd1a7a32625966b11f08f8c5c86c15288
parent2d78af453d1d2f6cd2a383224cd224ff3140a376 (diff)
downloadhostap-history-dd860fc523c0829257871f8fa0e67984e0f19b7c.zip
hostap-history-dd860fc523c0829257871f8fa0e67984e0f19b7c.tar.gz
hostap-history-dd860fc523c0829257871f8fa0e67984e0f19b7c.tar.bz2
Use WPA state machine variable bssid instead of wpa_s->bssid since the
current BSSID is now stored in the state machine variables.
-rw-r--r--wpa_supplicant/preauth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/preauth.c b/wpa_supplicant/preauth.c
index 40614c5..78ec7c0 100644
--- a/wpa_supplicant/preauth.c
+++ b/wpa_supplicant/preauth.c
@@ -710,7 +710,7 @@ void rsn_preauth_candidate_process(struct wpa_sm *sm)
struct rsn_pmksa_cache *p = NULL;
candidate = sm->pmksa_candidates;
p = pmksa_cache_get(sm, candidate->bssid, NULL);
- if (memcmp(wpa_s->bssid, candidate->bssid, ETH_ALEN) != 0 &&
+ if (memcmp(sm->bssid, candidate->bssid, ETH_ALEN) != 0 &&
(p == NULL || p->opportunistic)) {
wpa_msg(sm->ctx, MSG_DEBUG, "RSN: PMKSA candidate "
MACSTR " selected for pre-authentication",
@@ -846,7 +846,7 @@ void rsn_preauth_scan_results(struct wpa_supplicant *wpa_s,
r->ssid_len) != 0)
continue;
- if (memcmp(r->bssid, wpa_s->bssid, ETH_ALEN) == 0)
+ if (memcmp(r->bssid, sm->bssid, ETH_ALEN) == 0)
continue;
if (r->rsn_ie_len == 0 ||