From: Jouni Malinen Date: Thu, 2 Jan 2020 11:02:56 +0000 (+0200) Subject: tests: Make scan_bss_limit more robust X-Git-Tag: hostap_2_10~2018 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd9f5511a3d662adbfee45437f36b38656b472ed;p=thirdparty%2Fhostap.git tests: Make scan_bss_limit more robust Explicitly clear cfg80211 scan cache to avoid issues with old BSS entries from previous test cases. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_scan.py b/tests/hwsim/test_scan.py index 43311d7ea..682f427d1 100644 --- a/tests/hwsim/test_scan.py +++ b/tests/hwsim/test_scan.py @@ -1210,6 +1210,7 @@ def test_scan_bss_limit(dev, apdev): pass def _test_scan_bss_limit(dev, apdev): + dev[0].flush_scan_cache() # Trigger 'Increasing the MAX BSS count to 2 because all BSSes are in use. # We should normally not get here!' message by limiting the maximum BSS # count to one so that the second AP would not fit in the BSS list and the