tests: Update scan_fail to match implementation change

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>
This commit is contained in:
Jouni Malinen 2020-12-11 19:54:47 +02:00 committed by Jouni Malinen
parent 2a37cda747
commit e4c815a77a

View File

@ -1137,7 +1137,7 @@ def test_scan_fail(dev, apdev):
try: try:
if "OK" not in dev[0].request("SET setband 2G"): if "OK" not in dev[0].request("SET setband 2G"):
raise Exception("SET setband failed") 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 # While the frequency list cannot be created due to memory
# allocation failure, this scan is expected to be completed without # allocation failure, this scan is expected to be completed without
# frequency filtering. # frequency filtering.