]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: HT40 on 5 GHz with invalid channel pair
authorJouni Malinen <j@w1.fi>
Sat, 20 Jun 2015 12:51:41 +0000 (15:51 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 20 Jun 2015 12:51:41 +0000 (15:51 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_ht.py

index 11e06e1c9f442dd19f1d34edab3ee9f83be98ea3..670f59ded53a6dffd0580aa5e59e01ffb86e8b42 100644 (file)
@@ -944,3 +944,19 @@ def test_prefer_ht20_during_roam(dev, apdev):
     
     if dev[0].get_status_field('bssid') != bssid2:
         raise Exception("Unexpected BSS selected")
+
+def test_ap_ht40_5ghz_invalid_pair(dev, apdev):
+    """HT40 on 5 GHz with invalid channel pair"""
+    clear_scan_cache(apdev[0]['ifname'])
+    try:
+        params = { "ssid": "test-ht40",
+                   "hw_mode": "a",
+                   "channel": "40",
+                   "country_code": "US",
+                   "ht_capab": "[HT40+]"}
+        hapd = hostapd.add_ap(apdev[1]['ifname'], params, wait_enabled=False)
+        ev = hapd.wait_event(["AP-DISABLED"], timeout=10)
+        if not ev:
+            raise Exception("AP setup failure timed out")
+    finally:
+        subprocess.call(['iw', 'reg', 'set', '00'])