aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/sta.c
diff options
context:
space:
mode:
authorAshok Kumar Ponnaiah <aponnaia@qti.qualcomm.com>2014-08-29 13:03:01 (GMT)
committerJouni Malinen <j@w1.fi>2014-09-03 12:41:35 (GMT)
commitfa6fff189339b0f25e7e83fbf919223fd85b92f8 (patch)
tree1df9cac252eee44b6c8d9f2d41c101f1000dd579 /wlantest/sta.c
parentdf756b374e4e437117a8b40a079e8df3cf77e98d (diff)
downloadhostap-fa6fff189339b0f25e7e83fbf919223fd85b92f8.zip
hostap-fa6fff189339b0f25e7e83fbf919223fd85b92f8.tar.gz
hostap-fa6fff189339b0f25e7e83fbf919223fd85b92f8.tar.bz2
wlantest: Recognize CCMP-256, GCMP, and GCMP-256 ciphers
This adds support for displaying whether a BSS or STA is using one of the newer cipher suites. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wlantest/sta.c')
-rw-r--r--wlantest/sta.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/wlantest/sta.c b/wlantest/sta.c
index 6f6178d..178c28f 100644
--- a/wlantest/sta.c
+++ b/wlantest/sta.c
@@ -169,7 +169,7 @@ void sta_update_assoc(struct wlantest_sta *sta, struct ieee802_11_elems *elems)
skip_rsn_wpa:
wpa_printf(MSG_INFO, "STA " MACSTR
" proto=%s%s%s%s"
- "pairwise=%s%s%s%s"
+ "pairwise=%s%s%s%s%s%s%s"
"key_mgmt=%s%s%s%s%s%s%s%s%s"
"rsn_capab=%s%s%s%s%s",
MAC2STR(sta->addr),
@@ -181,6 +181,11 @@ skip_rsn_wpa:
sta->pairwise_cipher & WPA_CIPHER_NONE ? "NONE " : "",
sta->pairwise_cipher & WPA_CIPHER_TKIP ? "TKIP " : "",
sta->pairwise_cipher & WPA_CIPHER_CCMP ? "CCMP " : "",
+ bss->pairwise_cipher & WPA_CIPHER_CCMP_256 ? "CCMP-256 " :
+ "",
+ bss->pairwise_cipher & WPA_CIPHER_GCMP ? "GCMP " : "",
+ bss->pairwise_cipher & WPA_CIPHER_GCMP_256 ? "GCMP-256 " :
+ "",
sta->key_mgmt == 0 ? "N/A " : "",
sta->key_mgmt & WPA_KEY_MGMT_IEEE8021X ? "EAP " : "",
sta->key_mgmt & WPA_KEY_MGMT_PSK ? "PSK " : "",