]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: SMPS AP configuration options
authorJouni Malinen <j@w1.fi>
Sat, 20 Dec 2014 16:16:57 +0000 (18:16 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 20 Dec 2014 16:44:48 +0000 (18:44 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_ht.py

index fea1a78c338c1e94235bedab9f818748e6315360..bbd52708e77e4da3f5a786610fb0d44bbe259a0f 100644 (file)
@@ -759,3 +759,15 @@ def test_ap_ht40_csa3(dev, apdev):
             hapd.request("DISABLE")
         subprocess.call(['sudo', 'iw', 'reg', 'set', '00'])
         dev[0].flush_scan_cache()
+
+def test_ap_ht_smps(dev, apdev):
+    """SMPS AP configuration options"""
+    params = { "ssid": "ht1", "ht_capab": "[SMPS-STATIC]" }
+    hapd = hostapd.add_ap(apdev[0]['ifname'], params)
+    params = { "ssid": "ht2", "ht_capab": "[SMPS-DYNAMIC]" }
+    hapd2 = hostapd.add_ap(apdev[1]['ifname'], params)
+
+    dev[0].connect("ht1", key_mgmt="NONE", scan_freq="2412")
+    dev[1].connect("ht2", key_mgmt="NONE", scan_freq="2412")
+    hwsim_utils.test_connectivity(dev[0], hapd)
+    hwsim_utils.test_connectivity(dev[1], hapd2)