]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: TDLS_CHAN_SWITCH error case
authorJouni Malinen <j@w1.fi>
Sun, 8 Jan 2017 15:16:01 +0000 (17:16 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 8 Jan 2017 15:16:01 +0000 (17:16 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_tdls.py

index 1213faac01270d272268b34df66660c11f1ddc6e..6b802fa302401b0257379d6a700c9fa370927e6e 100644 (file)
@@ -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"""