aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2020-03-14 16:20:31 (GMT)
committerJouni Malinen <j@w1.fi>2020-03-14 16:20:31 (GMT)
commita8d2ca9e23a6855fb6910de8491fc599e6f4bc48 (patch)
treec742d5fe8535c14784de87b826ab9856ea39ccdf /wlantest
parent80d41221599b9bcf21dddbd1573ea7e84ae0c913 (diff)
downloadhostap-a8d2ca9e23a6855fb6910de8491fc599e6f4bc48.zip
hostap-a8d2ca9e23a6855fb6910de8491fc599e6f4bc48.tar.gz
hostap-a8d2ca9e23a6855fb6910de8491fc599e6f4bc48.tar.bz2
wlantest: Do not report PMF failure without BSS supporting PMF
Previously, missing CCMP protection on Robust Management frames was reported based on the STA having indicated MFPC=1. That is not accurate since the AP/BSS may have MFPC=0. Report this failure only if both the AP and STA have indicated MFPC=1, i.e., when PMF has been negotiated for the association. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wlantest')
-rw-r--r--wlantest/rx_mgmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wlantest/rx_mgmt.c b/wlantest/rx_mgmt.c
index 78fd3c8..ad388e1 100644
--- a/wlantest/rx_mgmt.c
+++ b/wlantest/rx_mgmt.c
@@ -1646,7 +1646,8 @@ 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 ((bss->rsn_capab & WPA_CAPABILITY_MFPC) &&
+ (sta->rsn_capab & WPA_CAPABILITY_MFPC) &&
(sta->state == STATE3 ||
WLAN_FC_GET_STYPE(fc) == WLAN_FC_STYPE_ACTION)) {
add_note(wt, MSG_INFO, "Robust individually-addressed "