]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Update scan_fail to match implementation change
authorJouni Malinen <jouni@codeaurora.org>
Fri, 11 Dec 2020 17:54:47 +0000 (19:54 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 11 Dec 2020 17:56:14 +0000 (19:56 +0200)
The function name for adding frequency lists changed, so this test case
needs a matching change to avoid failures.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_scan.py

index 2e64ceec7676689c6100e76e41c471906d73c0d8..458887cd39f956aa228080505929f7f6592ff04f 100644 (file)
@@ -1137,7 +1137,7 @@ def test_scan_fail(dev, apdev):
     try:
         if "OK" not in dev[0].request("SET setband 2G"):
             raise Exception("SET setband failed")
-        with alloc_fail(dev[0], 1, "=wpa_setband_scan_freqs_list"):
+        with alloc_fail(dev[0], 1, "=wpa_add_scan_freqs_list"):
             # While the frequency list cannot be created due to memory
             # allocation failure, this scan is expected to be completed without
             # frequency filtering.