aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/sta.c
diff options
context:
space:
mode:
authorMathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>2018-08-06 19:46:25 (GMT)
committerJouni Malinen <j@w1.fi>2018-12-16 22:02:14 (GMT)
commitdce962188005c9843ecff82093420dd9b5b6978a (patch)
tree19e6aee526230deb57b738e4e6f342624a42fe42 /wlantest/sta.c
parent55c12f5d37fbb0cb7edbd8529478df313b5c45ea (diff)
downloadhostap-dce962188005c9843ecff82093420dd9b5b6978a.zip
hostap-dce962188005c9843ecff82093420dd9b5b6978a.tar.gz
hostap-dce962188005c9843ecff82093420dd9b5b6978a.tar.bz2
OCV: Add wlantest support for indicating OCV
Add wlantest parsing of the OCV RSN cpability flag. Signed-off-by: Mathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
Diffstat (limited to 'wlantest/sta.c')
-rw-r--r--wlantest/sta.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/wlantest/sta.c b/wlantest/sta.c
index 1e53532..3e5ff51 100644
--- a/wlantest/sta.c
+++ b/wlantest/sta.c
@@ -168,13 +168,19 @@ void sta_update_assoc(struct wlantest_sta *sta, struct ieee802_11_elems *elems)
"without MFP to BSS " MACSTR " that advertises "
"MFPR", MAC2STR(sta->addr), MAC2STR(bss->bssid));
}
+ if ((sta->rsn_capab & WPA_CAPABILITY_OCVC) &&
+ !(sta->rsn_capab & WPA_CAPABILITY_MFPC)) {
+ wpa_printf(MSG_INFO, "STA " MACSTR " tries to associate "
+ "without MFP to BSS " MACSTR " while supporting "
+ "OCV", MAC2STR(sta->addr), MAC2STR(bss->bssid));
+ }
skip_rsn_wpa:
wpa_printf(MSG_INFO, "STA " MACSTR
" proto=%s%s%s%s"
"pairwise=%s%s%s%s%s%s%s"
"key_mgmt=%s%s%s%s%s%s%s%s%s%s%s"
- "rsn_capab=%s%s%s%s%s",
+ "rsn_capab=%s%s%s%s%s%s",
MAC2STR(sta->addr),
sta->proto == 0 ? "OPEN " : "",
sta->proto & WPA_PROTO_WPA ? "WPA " : "",
@@ -210,5 +216,6 @@ skip_rsn_wpa:
sta->rsn_capab & WPA_CAPABILITY_MFPR ? "MFPR " : "",
sta->rsn_capab & WPA_CAPABILITY_MFPC ? "MFPC " : "",
sta->rsn_capab & WPA_CAPABILITY_PEERKEY_ENABLED ?
- "PEERKEY " : "");
+ "PEERKEY " : "",
+ sta->rsn_capab & WPA_CAPABILITY_OCVC ? "OCVC " : "");
}