]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Fix scan_specific_bssid in case Beacon frame is seen
authorJouni Malinen <jouni@codeaurora.org>
Tue, 12 Mar 2019 14:36:46 +0000 (16:36 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 12 Mar 2019 14:36:46 +0000 (16:36 +0200)
commitabaa0893f0861a452f7394b34befecc1d7ed3d63
treece41c332687faee879b7928cdf635e1f8c3a96dd
parent9efd3447c7089d6adc301ceee5cbd75af6a6b6a1
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>
tests/hwsim/test_scan.py