tests: AP Channel Switch and DISABLE command before completion
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
7b2ca5cf0d
commit
c3da381526
1 changed files with 11 additions and 0 deletions
|
@ -150,3 +150,14 @@ def test_ap_csa_invalid(dev, apdev):
|
||||||
for val in vals:
|
for val in vals:
|
||||||
if "FAIL" not in ap.request("CHAN_SWITCH 1 %d" % val):
|
if "FAIL" not in ap.request("CHAN_SWITCH 1 %d" % val):
|
||||||
raise Exception("Invalid channel accepted: %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()
|
||||||
|
|
Loading…
Reference in a new issue