aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2005-06-25 16:45:01 (GMT)
committerJouni Malinen <j@w1.fi>2005-06-25 16:45:01 (GMT)
commitd965e00da08b5b809a6d60fdd0f8e94d20ff561b (patch)
tree7304c0554f30c3429f27d11e93e79c6f5cf11440
parent6cf605cda77b21fbcd880b36ff5c8dec4adc1a83 (diff)
downloadhostap-history-d965e00da08b5b809a6d60fdd0f8e94d20ff561b.zip
hostap-history-d965e00da08b5b809a6d60fdd0f8e94d20ff561b.tar.gz
hostap-history-d965e00da08b5b809a6d60fdd0f8e94d20ff561b.tar.bz2
Removed the final part refering to struct wpa_supplicant directly.
-rw-r--r--wpa_supplicant/preauth.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/wpa_supplicant/preauth.c b/wpa_supplicant/preauth.c
index 70ee795..04ed268 100644
--- a/wpa_supplicant/preauth.c
+++ b/wpa_supplicant/preauth.c
@@ -168,7 +168,6 @@ pmksa_cache_add(struct wpa_sm *sm, const u8 *pmk,
struct wpa_ssid *ssid)
{
struct rsn_pmksa_cache *entry, *pos, *prev;
- struct wpa_supplicant *wpa_s = sm->ctx;
time_t now;
if (sm->proto != WPA_PROTO_RSN || pmk_len > PMK_LEN)
@@ -213,7 +212,7 @@ pmksa_cache_add(struct wpa_sm *sm, const u8 *pmk,
wpa_printf(MSG_DEBUG, "RSN: removed the oldest PMKSA cache "
"entry (for " MACSTR ") to make room for new one",
MAC2STR(pos->aa));
- wpa_drv_remove_pmkid(wpa_s, pos->aa, pos->pmkid);
+ wpa_drv_remove_pmkid(sm->ctx, pos->aa, pos->pmkid);
pmksa_cache_free_entry(sm, pos);
}
@@ -237,7 +236,7 @@ pmksa_cache_add(struct wpa_sm *sm, const u8 *pmk,
sm->pmksa_count++;
wpa_printf(MSG_DEBUG, "RSN: added PMKSA cache entry for " MACSTR,
MAC2STR(entry->aa));
- wpa_drv_add_pmkid(wpa_s, entry->aa, entry->pmkid);
+ wpa_drv_add_pmkid(sm->ctx, entry->aa, entry->pmkid);
return entry;
}