From: Jouni Malinen Date: Fri, 19 Oct 2018 17:55:18 +0000 (+0300) Subject: tests: AP Channel Switch and DISABLE command before completion X-Git-Tag: hostap_2_7~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3da38152655de1466916fb7c12a5568d4c84a12;p=thirdparty%2Fhostap.git tests: AP Channel Switch and DISABLE command before completion Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_csa.py b/tests/hwsim/test_ap_csa.py index 902d4287b..76c5d786a 100644 --- a/tests/hwsim/test_ap_csa.py +++ b/tests/hwsim/test_ap_csa.py @@ -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()