tests: bg_scan_period parameter configuration
authorJouni Malinen <j@w1.fi>
Sat, 20 Dec 2014 17:44:40 +0000 (19:44 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 20 Dec 2014 17:44:40 +0000 (19:44 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_open.py
tests/hwsim/test_connect_cmd.py
tests/hwsim/wpasupplicant.py

index abcc6a2..9f7c80a 100644 (file)
@@ -16,7 +16,8 @@ import hwsim_utils
 def test_ap_open(dev, apdev):
     """AP with open mode (no security) configuration"""
     hapd = hostapd.add_ap(apdev[0]['ifname'], { "ssid": "open" })
-    dev[0].connect("open", key_mgmt="NONE", scan_freq="2412")
+    dev[0].connect("open", key_mgmt="NONE", scan_freq="2412",
+                   bg_scan_period="0")
     ev = hapd.wait_event([ "AP-STA-CONNECTED" ], timeout=5)
     if ev is None:
         raise Exception("No connection event received from hostapd")
index 444c532..8ea5b11 100644 (file)
@@ -24,7 +24,8 @@ def test_connect_cmd_open(dev, apdev):
 
     wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
     wpas.interface_add("wlan5", drv_params="force_connect_cmd=1")
-    wpas.connect("sta-connect", key_mgmt="NONE", scan_freq="2412")
+    wpas.connect("sta-connect", key_mgmt="NONE", scan_freq="2412",
+                 bg_scan_period="1")
     wpas.request("DISCONNECT")
 
 def test_connect_cmd_wep(dev, apdev):
index 2e4a17c..3f5bd6f 100644 (file)
@@ -790,7 +790,7 @@ class WpaSupplicant:
                        "disable_max_amsdu", "ampdu_factor", "ampdu_density",
                        "disable_ht40", "disable_sgi", "disable_ldpc",
                        "ht40_intolerant", "update_identifier", "mac_addr",
-                       "erp" ]
+                       "erp", "bg_scan_period" ]
         for field in not_quoted:
             if field in kwargs and kwargs[field]:
                 self.set_network(id, field, kwargs[field])