mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
wlantest: Check STA State when validating need for CCMP for mgmt
If the STA is in State 1 or 2, Deauth/Disassoc frames are not protected, so no need to complain about them being sent without CCMP.
This commit is contained in:
parent
3c7302c219
commit
f665867bd1
@ -894,7 +894,9 @@ static int check_mgmt_ccmp(struct wlantest *wt, const u8 *data, size_t len)
|
||||
if (sta == NULL)
|
||||
return 0;
|
||||
|
||||
if (sta->rsn_capab & WPA_CAPABILITY_MFPC) {
|
||||
if ((sta->rsn_capab & WPA_CAPABILITY_MFPC) &&
|
||||
(sta->state == STATE3 ||
|
||||
WLAN_FC_GET_STYPE(fc) == WLAN_FC_STYPE_ACTION)) {
|
||||
wpa_printf(MSG_INFO, "Robust individually-addressed "
|
||||
"management frame sent without CCMP by "
|
||||
MACSTR, MAC2STR(mgmt->sa));
|
||||
|
Loading…
Reference in New Issue
Block a user