[PATCH 2/3] tests: add wpa_supplicant 80 MHz VHT network test

Andrei Otcheretianski andrei.otcheretianski at intel.com
Tue Mar 7 08:20:58 PST 2017


From: Johannes Berg <johannes.berg at intel.com>

Add a test for the configuration knobs exposed in the previous
patch; more precisely, add a test that creates an 80 MHz VHT
network through wpa_supplicant (without P2P).

Signed-off-by: Johannes Berg <johannes.berg at intel.com>
---
 tests/hwsim/test_wpas_ap.py | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/tests/hwsim/test_wpas_ap.py b/tests/hwsim/test_wpas_ap.py
index ba11e60..6b29e80 100644
--- a/tests/hwsim/test_wpas_ap.py
+++ b/tests/hwsim/test_wpas_ap.py
@@ -645,3 +645,24 @@ def _test_wpas_ap_5ghz(dev):
     dev[1].connect("wpas-ap-5ghz", key_mgmt="NONE", scan_freq="5180")
     dev[1].request("DISCONNECT")
     dev[1].wait_disconnected()
+
+def test_wpas_ap_open_vht_80MHz(dev):
+    id = dev[0].add_network()
+    dev[0].set("country", "FI")
+    try:
+        dev[0].set_network(id, "mode", "2")
+        dev[0].set_network_quoted(id, "ssid", "wpas-ap-open")
+        dev[0].set_network(id, "key_mgmt", "NONE")
+        dev[0].set_network(id, "frequency", "5180")
+        dev[0].set_network(id, "scan_freq", "5180")
+        dev[0].set_network(id, "vht", "1")
+        dev[0].set_network(id, "vht_center_freq1", "5210")
+        dev[0].set_network(id, "max_oper_chwidth", "1")
+        dev[0].set_network(id, "ht40", "1")
+        dev[0].select_network(id)
+        wait_ap_ready(dev[0])
+
+        dev[1].connect("wpas-ap-open", key_mgmt="NONE", scan_freq="5180")
+        hwsim_utils.test_connectivity(dev[0], dev[1])
+    finally:
+        dev[0].set("country", "00")
-- 
1.9.1




More information about the Hostap mailing list