aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2005-06-25 17:42:17 (GMT)
committerJouni Malinen <j@w1.fi>2005-06-25 17:42:17 (GMT)
commit675134617cd0fef53b3bfbb9de24cc753cbb2b59 (patch)
treeca8b1c8ef56b6e81d0a9cad467747809d5d97028
parent327fcc79a26118efbd67a2beedf355a3eff8843d (diff)
downloadhostap-history-675134617cd0fef53b3bfbb9de24cc753cbb2b59.zip
hostap-history-675134617cd0fef53b3bfbb9de24cc753cbb2b59.tar.gz
hostap-history-675134617cd0fef53b3bfbb9de24cc753cbb2b59.tar.bz2
Changed wpa_supplicant_validate_ie() to use struct wpa_sm instead of
struct wpa_supplicant.
-rw-r--r--wpa_supplicant/wpa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/wpa_supplicant/wpa.c b/wpa_supplicant/wpa.c
index a556a53..900370e 100644
--- a/wpa_supplicant/wpa.c
+++ b/wpa_supplicant/wpa.c
@@ -1410,12 +1410,12 @@ static void wpa_report_ie_mismatch(struct wpa_supplicant *wpa_s,
}
-static int wpa_supplicant_validate_ie(struct wpa_supplicant *wpa_s,
+static int wpa_supplicant_validate_ie(struct wpa_sm *sm,
const unsigned char *src_addr,
struct wpa_eapol_ie_parse *ie)
{
- struct wpa_ssid *ssid = wpa_s->wpa->cur_ssid;
- struct wpa_sm *sm = wpa_s->wpa;
+ struct wpa_supplicant *wpa_s = sm->ctx;
+ struct wpa_ssid *ssid = sm->cur_ssid;
if (wpa_s->ap_wpa_ie == NULL && wpa_s->ap_rsn_ie == NULL) {
wpa_printf(MSG_DEBUG, "WPA: No WPA/RSN IE for this AP known. "
@@ -1519,7 +1519,7 @@ static void wpa_supplicant_process_3_of_4(struct wpa_sm *sm,
return;
}
- if (wpa_supplicant_validate_ie(sm->ctx, src_addr, &ie) < 0)
+ if (wpa_supplicant_validate_ie(sm, src_addr, &ie) < 0)
return;
if (memcmp(sm->anonce, key->key_nonce, WPA_NONCE_LEN) != 0) {