aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 ||