]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Set obss_interval for the test that verifies return to 40 MHz
authorJouni Malinen <j@w1.fi>
Wed, 25 Dec 2024 17:11:11 +0000 (19:11 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 25 Dec 2024 17:12:16 +0000 (19:12 +0200)
This is in preparation for changing hostapd to require obss_interval to
be set to allow the channel bandwidth to be increased from 20 MHz to 40
MHz on disassociation of the last 40 MHz intolerant STA.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_ht.py

index 86c8bdec8d5e18dfd583b1dd6969c944acf24453..4ae02234e0fab8802d1e3a80b4687e30ae912a14 100644 (file)
@@ -937,7 +937,8 @@ def test_ap_ht_40mhz_intolerant_sta(dev, apdev):
     clear_scan_cache(apdev[0])
     params = {"ssid": "intolerant",
               "channel": "6",
-              "ht_capab": "[HT40-]"}
+              "ht_capab": "[HT40-]",
+              "obss_interval": "2"}
     hapd = hostapd.add_ap(apdev[0], params)
     if hapd.get_status_field("num_sta_ht40_intolerant") != "0":
         raise Exception("Unexpected num_sta_ht40_intolerant value")
@@ -959,7 +960,7 @@ def test_ap_ht_40mhz_intolerant_sta(dev, apdev):
         raise Exception("Unexpected secondary_channel (did not disable 40 MHz)")
 
     dev[2].request("DISCONNECT")
-    time.sleep(1)
+    time.sleep(12)
     if hapd.get_status_field("num_sta_ht40_intolerant") != "0":
         raise Exception("Unexpected num_sta_ht40_intolerant value (expected 0)")
     if hapd.get_status_field("secondary_channel") != "-1":