]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Automatic channel selection for VHT 80+80
authorJouni Malinen <j@w1.fi>
Sun, 14 Mar 2021 16:07:19 +0000 (18:07 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 14 Mar 2021 16:07:19 +0000 (18:07 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_acs.py

index 08eaee5fde5566931ef519fd186988085467195d..8fc5ec4f3a69dfcce3a76d7c3fbd920b8f02d7e9 100644 (file)
@@ -284,6 +284,30 @@ def test_ap_acs_vht40(dev, apdev):
     finally:
         clear_regdom(hapd, dev)
 
+def test_ap_acs_vht80p80(dev, apdev):
+    """Automatic channel selection for VHT 80+80"""
+    try:
+        hapd = None
+        force_prev_ap_on_5g(apdev[0])
+        params = hostapd.wpa2_params(ssid="test-acs", passphrase="12345678")
+        params['hw_mode'] = 'a'
+        params['channel'] = '0'
+        params['ht_capab'] = '[HT40+]'
+        params['country_code'] = 'US'
+        params['ieee80211ac'] = '1'
+        params['vht_oper_chwidth'] = '3'
+        hapd = hostapd.add_ap(apdev[0], params, wait_enabled=False)
+        ev = hapd.wait_event(["ACS-COMPLETED"], timeout=20)
+        if ev is None:
+            raise Exception("ACS did not complete")
+        # ACS for 80+80 is not yet supported, so the AP setup itself will fail.
+        # Do not try to connection before this gets fully supported.
+        ev = hapd.wait_event(["AP-ENABLED", "AP-DISABLED"], timeout=10)
+        if ev is None:
+            raise Exception("AP enabled/disabled not reported")
+    finally:
+        clear_regdom(hapd, dev)
+
 def test_ap_acs_vht160(dev, apdev):
     """Automatic channel selection for VHT160"""
     try: