]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix some incorrect failure waiting calls
authorBenjamin Berg <benjamin.berg@intel.com>
Mon, 20 Nov 2023 23:51:47 +0000 (01:51 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 26 Nov 2023 09:26:50 +0000 (11:26 +0200)
These were either sending the command to the wrong
hostapd/wpa_supplicant instance or using the wrong command. This
currently causes the wait to just immediately stop, but with future
commits it would start failing.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
tests/hwsim/test_ap_hs20.py
tests/hwsim/test_rrm.py

index 30bacb9697ff1d9db757c0d695878d7ec4c60343..c77c8d2e9606847796e5b40f4ae429d1d9c3a370 100644 (file)
@@ -5470,7 +5470,7 @@ def run_proxyarp_errors(dev, apdev, params):
     with fail_test(hapd, 1, "x_snoop_mcast_to_ucast_convert_send"):
         if "OK" not in hapd.request("DATA_TEST_FRAME ifname=ap-br0 " + binascii.hexlify(pkt).decode()):
             raise Exception("DATA_TEST_FRAME failed")
-        wait_fail_trigger(dev[0], "GET_FAIL")
+        wait_fail_trigger(hapd, "GET_FAIL")
 
     with alloc_fail(hapd, 1, "sta_ip6addr_add"):
         src_ll_opt0 = b"\x01\x01" + binascii.unhexlify(addr0.replace(':', ''))
@@ -5479,7 +5479,7 @@ def run_proxyarp_errors(dev, apdev, params):
                        opt=src_ll_opt0)
         if "OK" not in dev[0].request("DATA_TEST_FRAME " + binascii.hexlify(pkt).decode()):
             raise Exception("DATA_TEST_FRAME failed")
-        wait_fail_trigger(dev[0], "GET_ALLOC_FAIL")
+        wait_fail_trigger(hapd, "GET_ALLOC_FAIL")
 
 def test_ap_hs20_connect_deinit(dev, apdev):
     """Hotspot 2.0 connection interrupted with deinit"""
index 76d75067fba5e1aed06771ab00186e3eb9d2115b..4d64d407524d13aa0bd0c5876f628b89ed663d7f 100644 (file)
@@ -1134,7 +1134,7 @@ def test_rrm_beacon_req_table_request_oom(dev, apdev):
     with fail_test(dev[0], 1,
                     "wpa_driver_nl80211_send_action;wpas_rrm_send_msr_report_mpdu"):
         token = run_req_beacon(hapd, addr, req + "020101" + "0a03000106")
-        wait_fail_trigger(dev[0], "GET_ALLOC_FAIL")
+        wait_fail_trigger(dev[0], "GET_FAIL")
         ev = hapd.wait_event(["BEACON-RESP-RX"], timeout=0.1)
         if ev is not None:
             raise Exception("Unexpected beacon report response received (OOM)")