From ccefa6419cc3b944d6a28a9d2e890de19365f17f Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 31 Oct 2023 12:00:22 +0200 Subject: [PATCH] tests: rrm_beacon_req_active_scan_fail to allow implementation change Use more specific condition for the allocation failure to allow wpa_supplicant_trigger_scan() implementation to be modified without making this test case fail. Signed-off-by: Jouni Malinen --- tests/hwsim/test_rrm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/test_rrm.py b/tests/hwsim/test_rrm.py index 7dc2359d8..76d75067f 100644 --- a/tests/hwsim/test_rrm.py +++ b/tests/hwsim/test_rrm.py @@ -1638,7 +1638,8 @@ def test_rrm_beacon_req_active_scan_fail(dev, apdev): addr = dev[0].own_addr() hapd.wait_sta() - with alloc_fail(dev[0], 1, "wpa_supplicant_trigger_scan"): + with alloc_fail(dev[0], 1, + "wpa_scan_clone_params;wpa_supplicant_trigger_scan"): req = build_beacon_request(chan=255, duration=100, mode=1) token = run_req_beacon(hapd, addr, req + "330351010b") wait_fail_trigger(dev[0], "GET_ALLOC_FAIL")