tests: Fix scan_specific_bssid in case Beacon frame is seen
The first scan for the unknown BSSID could have been timed in a manner that allows passive scanning to find the real AP even if that AP's beacon interval was 1000 (e.g., heavy CPU load changed timing so that the AP beaconing started at suitable time). The check for BSS result entry not including Probe Response frame was comparing incorrect BSS entries (bss2 vs. bss1) which resulted in the test case claiming failure even when there was no unexpected Probe Response frame. Fix this by comparing the beacon_ie and ie parameters from the same BSS entry (bss1). Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
9efd3447c7
commit
abaa0893f0
1 changed files with 1 additions and 1 deletions
|
@ -1454,7 +1454,7 @@ def test_scan_specific_bssid(dev, apdev):
|
|||
|
||||
if not bss2:
|
||||
raise Exception("Did not find BSS")
|
||||
if bss1 and 'beacon_ie' in bss1 and 'ie' in bss1 and bss1['beacon_ie'] != bss2['ie']:
|
||||
if bss1 and 'beacon_ie' in bss1 and 'ie' in bss1 and bss1['beacon_ie'] != bss1['ie']:
|
||||
raise Exception("First scan for unknown BSSID returned unexpected response")
|
||||
if bss2 and 'beacon_ie' in bss2 and 'ie' in bss2 and bss2['beacon_ie'] == bss2['ie']:
|
||||
raise Exception("Second scan did find Probe Response frame")
|
||||
|
|
Loading…
Reference in a new issue