mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 19:04:02 -05:00
tests: Make wep_open_auth less likely to fail due to old scan entry
Flush cfg80211 cached scan results to avoid getting any non-WEP matches for the BSS. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
ea68ed56b9
commit
1ca6d13dac
@ -12,6 +12,7 @@ def test_wep_open_auth(dev, apdev):
|
|||||||
hapd = hostapd.add_ap(apdev[0]['ifname'],
|
hapd = hostapd.add_ap(apdev[0]['ifname'],
|
||||||
{ "ssid": "wep-open",
|
{ "ssid": "wep-open",
|
||||||
"wep_key0": '"hello"' })
|
"wep_key0": '"hello"' })
|
||||||
|
dev[0].flush_scan_cache()
|
||||||
dev[0].connect("wep-open", key_mgmt="NONE", wep_key0='"hello"',
|
dev[0].connect("wep-open", key_mgmt="NONE", wep_key0='"hello"',
|
||||||
scan_freq="2412")
|
scan_freq="2412")
|
||||||
hwsim_utils.test_connectivity(dev[0], hapd)
|
hwsim_utils.test_connectivity(dev[0], hapd)
|
||||||
|
Loading…
Reference in New Issue
Block a user