]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix ap_vht_csa_vht40 to use list of events with wait_event()
authorJouni Malinen <jouni@codeaurora.org>
Wed, 7 Aug 2019 09:56:43 +0000 (12:56 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 7 Aug 2019 09:57:22 +0000 (12:57 +0300)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_ap_vht.py

index 104f80e3d446bf49470697b7883c2ea46ef540f5..a02820ba7571501fc7e621394bace3d255893570 100644 (file)
@@ -773,7 +773,7 @@ def test_ap_vht_csa_vht40(dev, apdev):
             raise Exception("CSA finished event timed out")
         if "freq=5765" not in ev:
             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:
             raise Exception("Channel switch event not seen")
         if "freq=5765" not in ev: