tests: Make ap_wps_ap_scan_2 more robust
authorJouni Malinen <j@w1.fi>
Thu, 18 Jun 2015 19:33:48 +0000 (22:33 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 18 Jun 2015 19:33:48 +0000 (22:33 +0300)
commite51c8b2e970433f1bb017895c1c06ea7f3e7076c
tree528783aa5268ebc9ced69415598d94a66fd0be43
parent492c3a91807742e91e7ab74b63bcabfb55575a4c
tests: Make ap_wps_ap_scan_2 more robust

The test sequence "scan_and_bss_entry_removed ap_wps_ap_scan_2" resulted
in failure due to an old BSS entry remaining from the first test case to
the second and the WPS_PBC operation on a forced BSSID ending up picking
the incorrect BSS entry. Make this more robust by clearing the scan
results from cfg80211.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_wps.py
tests/hwsim/test_scan.py