tests: Fix ap_vht_csa_vht40 to use list of events with wait_event()
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
0e2605b948
commit
12c5c2404e
1 changed files with 1 additions and 1 deletions
|
@ -773,7 +773,7 @@ def test_ap_vht_csa_vht40(dev, apdev):
|
||||||
raise Exception("CSA finished event timed out")
|
raise Exception("CSA finished event timed out")
|
||||||
if "freq=5765" not in ev:
|
if "freq=5765" not in ev:
|
||||||
raise Exception("Unexpected channel in CSA finished event")
|
raise Exception("Unexpected channel in CSA finished event")
|
||||||
ev = dev[0].wait_event("CTRL-EVENT-CHANNEL-SWITCH", timeout=5)
|
ev = dev[0].wait_event(["CTRL-EVENT-CHANNEL-SWITCH"], timeout=5)
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("Channel switch event not seen")
|
raise Exception("Channel switch event not seen")
|
||||||
if "freq=5765" not in ev:
|
if "freq=5765" not in ev:
|
||||||
|
|
Loading…
Reference in a new issue