]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: 40 MHz HT40 plus/minus to 20 MHz downgrade
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 2 Feb 2024 15:54:03 +0000 (17:54 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 2 Feb 2024 15:54:03 +0000 (17:54 +0200)
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_he.py

index 05a9213488904d7e25c3e8880caa4d6d532bf87d..52cbb1c6090dc6762b430322502802451e54e2fe 100644 (file)
@@ -1744,6 +1744,23 @@ def test_he_downgrade_40mhz_to_20mhz(dev, apdev):
               "he_oper_chwidth": "0" }
     run_he_downgrade_to_20_mhz(dev, apdev, params)
 
+def test_he_downgrade_40mhz_plus_minus_to_20mhz(dev, apdev):
+    """HE AP and downgrade from 40 MHz (+/-) to 20 MHz due to regulatory constraints"""
+    # Try to configure 40 MHz channel when the regdb limits this frequency to
+    # 20 MHz.
+    params = {"ssid": "he",
+              "country_code": "AM",
+              "channel": "36",
+              "op_class": "116",
+              "ieee80211n": "1",
+              "ieee80211ac": "1",
+              "ieee80211ax": "1",
+              "hw_mode": "a",
+              "ht_capab": "[HT40+][HT40-]",
+              "vht_oper_chwidth": "0",
+              "he_oper_chwidth": "0" }
+    run_he_downgrade_to_20_mhz(dev, apdev, params)
+
 def test_he_downgrade_80mhz_to_20mhz(dev, apdev):
     """HE AP and downgrade from 80 MHz to 20 MHz due to regulatory constraints"""
     # Try to configure 80 MHz channel when the regdb limits this frequency to