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 <j@w1.fi>
This commit is contained in:
parent
b5a3b80718
commit
cd9f5511a3
1 changed files with 1 additions and 0 deletions
|
@ -1210,6 +1210,7 @@ def test_scan_bss_limit(dev, apdev):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def _test_scan_bss_limit(dev, apdev):
|
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.
|
# 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
|
# 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
|
# count to one so that the second AP would not fit in the BSS list and the
|
||||||
|
|
Loading…
Reference in a new issue