]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Use deauthentication instead of disassociation on RSN element mismatch
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 5 Nov 2012 15:01:07 +0000 (17:01 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 5 Nov 2012 15:01:07 +0000 (17:01 +0200)
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>

src/rsn_supp/wpa.c

index 918dcfa36d9ce004dbe04e1d900debe37dae44a8..caf18fd22bbf9d81f3cc40df9442206853dd6788 100644 (file)
@@ -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);
 }