aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ibss_rsn.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-09-06 11:51:31 (GMT)
committerJouni Malinen <j@w1.fi>2019-10-15 12:39:22 (GMT)
commit146889e3ca4353c99fe1677c98fbd1972f9b5eac (patch)
treed262c3f54ba1eb8b779a594aadcfb7b49dfd7405 /wpa_supplicant/ibss_rsn.c
parent3134bb13a8bd54975a514a6e46755234ec5831a2 (diff)
downloadhostap-146889e3ca4353c99fe1677c98fbd1972f9b5eac.zip
hostap-146889e3ca4353c99fe1677c98fbd1972f9b5eac.tar.gz
hostap-146889e3ca4353c99fe1677c98fbd1972f9b5eac.tar.bz2
RSN: Verify RSNXE match between Beacon/ProbeResp and EAPOL-Key msg 3/4
If the AP advertises RSN Extension element, it has to be advertised consistently in the unprotected (Beacon and Probe Response) and protected (EAPOL-Key msg 3/4) frames. Verify that this is the case. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'wpa_supplicant/ibss_rsn.c')
-rw-r--r--wpa_supplicant/ibss_rsn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/ibss_rsn.c b/wpa_supplicant/ibss_rsn.c
index 6934c47..2bf51c6 100644
--- a/wpa_supplicant/ibss_rsn.c
+++ b/wpa_supplicant/ibss_rsn.c
@@ -111,6 +111,7 @@ static int supp_get_beacon_ie(void *ctx)
wpa_printf(MSG_DEBUG, "SUPP: %s", __func__);
/* TODO: get correct RSN IE */
+ wpa_sm_set_ap_rsnxe(peer->supp, NULL, 0);
return wpa_sm_set_ap_rsn_ie(peer->supp,
(u8 *) "\x30\x14\x01\x00"
"\x00\x0f\xac\x04"