summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-11-05 17:01:07 +0200
committerJouni Malinen <j@w1.fi>2012-11-05 17:01:07 +0200
commit3da372fae8b25a4aec12245b05680646f3bd0ccd (patch)
tree72155ef1db45be036a5e5488b352a3a899e42557
parent07783eaaa05c07e2c0071780ed3ebf7d0abfe4b5 (diff)
downloadhostap-3da372fae8b25a4aec12245b05680646f3bd0ccd.tar.gz
Use deauthentication instead of disassociation on RSN element mismatch
Even though the standard currently describes disassociation to be used for RSN element mismatch between Beacon/Probe Response frames and EAPOL-Key msg 3/4, this is unnecessary difference from other cases that deauthenticate. In addition, there is no point in leaving the 802.11 Authentication in place in this case. To keep things simpler, use deauthentication here to get rid of the only use of wpa_sm_disassociate(). Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--src/rsn_supp/wpa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rsn_supp/wpa.c b/src/rsn_supp/wpa.c
index 918dcfa36..caf18fd22 100644
--- a/src/rsn_supp/wpa.c
+++ b/src/rsn_supp/wpa.c
@@ -783,7 +783,7 @@ static void wpa_report_ie_mismatch(struct wpa_sm *sm,
rsn_ie, rsn_ie_len);
}
- wpa_sm_disassociate(sm, WLAN_REASON_IE_IN_4WAY_DIFFERS);
+ wpa_sm_deauthenticate(sm, WLAN_REASON_IE_IN_4WAY_DIFFERS);
}