From dd860fc523c0829257871f8fa0e67984e0f19b7c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 24 Jun 2005 04:26:54 +0000 Subject: Use WPA state machine variable bssid instead of wpa_s->bssid since the current BSSID is now stored in the state machine variables. --- wpa_supplicant/preauth.c | 4 ++-- 1 file 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 || -- cgit v0.12