aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/wlantest_cli.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2011-10-25 21:06:06 (GMT)
committerJouni Malinen <j@w1.fi>2011-10-25 21:06:06 (GMT)
commit62f05ce9c54d6cbbfe57d69a5bf126fd96ee5265 (patch)
treef2f41a73f3a3a49c82a8d84e3ae5537e7c03f913 /wlantest/wlantest_cli.c
parent1d21e9dd5a5ae29681fa5095c1d79eff7f0ad546 (diff)
downloadhostap-62f05ce9c54d6cbbfe57d69a5bf126fd96ee5265.zip
hostap-62f05ce9c54d6cbbfe57d69a5bf126fd96ee5265.tar.gz
hostap-62f05ce9c54d6cbbfe57d69a5bf126fd96ee5265.tar.bz2
wlantest: Add STA counters for disconnect reason 6/7 RX
These can be useful in tests involving association state mismatch between the AP and the STA (i.e., STA assumes it is still associated but the AP does not have association state). In such a case, the AP would be sending out unprotected Deauthentication or Disassociation frames with reason code 6 or 7 depending on what frame is triggering this.
Diffstat (limited to 'wlantest/wlantest_cli.c')
-rw-r--r--wlantest/wlantest_cli.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wlantest/wlantest_cli.c b/wlantest/wlantest_cli.c
index 3194677..6377fc1 100644
--- a/wlantest/wlantest_cli.c
+++ b/wlantest/wlantest_cli.c
@@ -552,6 +552,10 @@ static const struct sta_counters sta_counters[] = {
{ "disassoc_rx_asleep", WLANTEST_STA_COUNTER_DISASSOC_RX_ASLEEP },
{ "disassoc_rx_awake", WLANTEST_STA_COUNTER_DISASSOC_RX_AWAKE },
{ "prot_data_tx", WLANTEST_STA_COUNTER_PROT_DATA_TX },
+ { "deauth_rx_rc6", WLANTEST_STA_COUNTER_DEAUTH_RX_RC6 },
+ { "deauth_rx_rc7", WLANTEST_STA_COUNTER_DEAUTH_RX_RC7 },
+ { "disassoc_rx_rc6", WLANTEST_STA_COUNTER_DISASSOC_RX_RC6 },
+ { "disassoc_rx_rc7", WLANTEST_STA_COUNTER_DISASSOC_RX_RC7 },
{ NULL, 0 }
};