mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
tests: Make ap_wps_er_add_enrollee more robust under load
The scan for WPS-AUTH validation may miss a Probe Response frame if the hostapd process gets blocked under load, e.g., when testing with parallel-vm.sh. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
e49cabcf87
commit
321c7f6034
@ -914,6 +914,11 @@ def test_ap_wps_er_add_enrollee(dev, apdev):
|
||||
dev[1].scan_for_bss(apdev[0]['bssid'], freq="2412")
|
||||
dev[1].scan(freq="2412")
|
||||
bss = dev[1].get_bss(apdev[0]['bssid'])
|
||||
if "[WPS-AUTH]" not in bss['flags']:
|
||||
# It is possible for scan to miss an update especially when running
|
||||
# tests under load with multiple VMs, so allow another attempt.
|
||||
dev[1].scan(freq="2412")
|
||||
bss = dev[1].get_bss(apdev[0]['bssid'])
|
||||
if "[WPS-AUTH]" not in bss['flags']:
|
||||
raise Exception("WPS-AUTH flag missing")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user