]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: VHT and 40 MHz channel
authorJouni Malinen <j@w1.fi>
Sat, 20 Dec 2014 16:20:00 +0000 (18:20 +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_vht.py

index a14f4e478f8f7974ad5beac3207f2a13d12398da..235508ecc0e7e9ad65951fbcfc29c439e83c55d8 100644 (file)
@@ -123,6 +123,33 @@ def test_ap_vht_20(devs, apdevs):
         subprocess.call(['sudo', 'iw', 'reg', 'set', '00'])
         dev.flush_scan_cache()
 
+def test_ap_vht_40(devs, apdevs):
+    """VHT and 40 MHz channel"""
+    dev = devs[0]
+    ap = apdevs[0]
+    try:
+        hapd = None
+        params = { "ssid": "test-vht40",
+                   "country_code": "DE",
+                   "hw_mode": "a",
+                   "channel": "36",
+                   "ieee80211n": "1",
+                   "ieee80211ac": "1",
+                   "ht_capab": "[HT40+]",
+                   "vht_capab": "",
+                   "vht_oper_chwidth": "0",
+                   "vht_oper_centr_freq_seg0_idx": "0",
+                 }
+        hapd = hostapd.add_ap(ap['ifname'], params)
+        dev.connect("test-vht40", scan_freq="5180", key_mgmt="NONE")
+        hwsim_utils.test_connectivity(dev, hapd)
+    finally:
+        dev.request("DISCONNECT")
+        if hapd:
+            hapd.request("DISABLE")
+        subprocess.call(['sudo', 'iw', 'reg', 'set', '00'])
+        dev.flush_scan_cache()
+
 def test_ap_vht_capab_not_supported(dev, apdev):
     """VHT configuration with driver not supporting all vht_capab entries"""
     try: