aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-01-08 15:16:01 (GMT)
committerJouni Malinen <j@w1.fi>2017-01-08 15:16:01 (GMT)
commitf241a2604a85c9ea42404276065c733a07ae9beb (patch)
treee394510d6daaedf8304540966b0fc3836f63212e /tests
parentc1c938335e9b54d59212a55a350262bee175b0b3 (diff)
downloadhostap-f241a2604a85c9ea42404276065c733a07ae9beb.zip
hostap-f241a2604a85c9ea42404276065c733a07ae9beb.tar.gz
hostap-f241a2604a85c9ea42404276065c733a07ae9beb.tar.bz2
tests: TDLS_CHAN_SWITCH error case
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_ap_tdls.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_tdls.py b/tests/hwsim/test_ap_tdls.py
index 1213faa..6b802fa 100644
--- a/tests/hwsim/test_ap_tdls.py
+++ b/tests/hwsim/test_ap_tdls.py
@@ -540,6 +540,8 @@ def test_tdls_chan_switch(dev, apdev):
raise Exception("Could not disable TDLS channel switching")
if "FAIL" not in dev[0].request("TDLS_CANCEL_CHAN_SWITCH " + dev[1].own_addr()):
raise Exception("TDLS_CANCEL_CHAN_SWITCH accepted even though channel switching was already disabled")
+ if "FAIL" not in dev[0].request("TDLS_CHAN_SWITCH foo 81 2462"):
+ raise Exception("Invalid TDLS channel switching command accepted")
def test_ap_tdls_link_status(dev, apdev):
"""Check TDLS link status between two stations"""