aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2014-10-21 08:59:54 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-21 20:32:11 (GMT)
commit4181c3964d7f90f487ef4a2dc916048e539ba5a1 (patch)
tree8e304cbe661041dc99173cf551bfc750c434cf96 /tests
parentec8f36afca731aa6a30a314c54bb83441180719d (diff)
downloadhostap-4181c3964d7f90f487ef4a2dc916048e539ba5a1.zip
hostap-4181c3964d7f90f487ef4a2dc916048e539ba5a1.tar.gz
hostap-4181c3964d7f90f487ef4a2dc916048e539ba5a1.tar.bz2
tests: BSS Load updates
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_ap_open.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_open.py b/tests/hwsim/test_ap_open.py
index d550a2a..c5c0a3e 100644
--- a/tests/hwsim/test_ap_open.py
+++ b/tests/hwsim/test_ap_open.py
@@ -165,3 +165,17 @@ def test_ap_open_unexpected_assoc_event(dev, apdev):
ev = dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"], timeout=15)
if ev is None:
raise Exception("Disconnection with the AP timed out")
+
+def test_ap_bss_load(dev, apdev):
+ """AP with open mode (no security) configuration"""
+ hapd = hostapd.add_ap(apdev[0]['ifname'],
+ { "ssid": "open",
+ "bss_load_update_period": "10" })
+ dev[0].connect("open", key_mgmt="NONE", scan_freq="2412")
+ # this does not really get much useful output with mac80211_hwsim currently,
+ # but run through the channel survey update couple of times
+ for i in range(0, 10):
+ hwsim_utils.test_connectivity(dev[0], hapd)
+ hwsim_utils.test_connectivity(dev[0], hapd)
+ hwsim_utils.test_connectivity(dev[0], hapd)
+ time.sleep(0.15)