From a42f88f8e7fc7467c54683878dba6df4243cac34 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 20 Dec 2014 19:44:40 +0200 Subject: [PATCH] tests: bg_scan_period parameter configuration Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_open.py | 3 ++- tests/hwsim/test_connect_cmd.py | 3 ++- tests/hwsim/wpasupplicant.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/hwsim/test_ap_open.py b/tests/hwsim/test_ap_open.py index abcc6a218..9f7c80ac3 100644 --- a/tests/hwsim/test_ap_open.py +++ b/tests/hwsim/test_ap_open.py @@ -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") diff --git a/tests/hwsim/test_connect_cmd.py b/tests/hwsim/test_connect_cmd.py index 444c53294..8ea5b11d7 100644 --- a/tests/hwsim/test_connect_cmd.py +++ b/tests/hwsim/test_connect_cmd.py @@ -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): diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index 2e4a17c80..3f5bd6f08 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -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])