Browse Source

tests: Make wpas_ctrl_bssid_filter more robust

Use scan_for_bss() to make sure the AP is seen even under heavy CPU
load.

Signed-off-by: Jouni Malinen <j@w1.fi>
Jouni Malinen 10 years ago
parent
commit
487a31f355
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/hwsim/test_wpas_ctrl.py

+ 1 - 0
tests/hwsim/test_wpas_ctrl.py

@@ -582,6 +582,7 @@ def test_wpas_ctrl_bssid_filter(dev, apdev):
         params = { "ssid": "test" }
         hostapd.add_ap(apdev[0]['ifname'], params)
         hostapd.add_ap(apdev[1]['ifname'], params)
+        dev[2].scan_for_bss(apdev[0]['bssid'], freq="2412")
         dev[2].scan(freq="2412")
         bss = dev[2].get_bss(apdev[0]['bssid'])
         if bss is None or len(bss) == 0: