]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: AP Channel Switch and DISABLE command before completion
authorJouni Malinen <jouni@codeaurora.org>
Fri, 19 Oct 2018 17:55:18 +0000 (20:55 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 19 Oct 2018 18:26:03 +0000 (21:26 +0300)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_ap_csa.py

index 902d4287b640541d1d7fe6cea85a53166615f816..76c5d786aa609c8138fdfd8eb8518ad1328a6ff0 100644 (file)
@@ -150,3 +150,14 @@ def test_ap_csa_invalid(dev, apdev):
     for val in vals:
         if "FAIL" not in ap.request("CHAN_SWITCH 1 %d" % val):
             raise Exception("Invalid channel accepted: %d" % val)
+
+def test_ap_csa_disable(dev, apdev):
+    """AP Channel Switch and DISABLE command before completion"""
+    csa_supported(dev[0])
+    ap = connect(dev[0], apdev)
+    if "OK" not in ap.request("CHAN_SWITCH 10 2462"):
+        raise Exception("CHAN_SWITCH failed")
+    ap.disable()
+    ap.enable()
+    dev[0].wait_disconnected()
+    dev[0].wait_connected()