From: Jouni Malinen Date: Wed, 25 Dec 2024 17:11:11 +0000 (+0200) Subject: tests: Set obss_interval for the test that verifies return to 40 MHz X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdcee7ddfc8186f6133c4e234162b249f9afd332;p=thirdparty%2Fhostap.git tests: Set obss_interval for the test that verifies return to 40 MHz 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 --- diff --git a/tests/hwsim/test_ap_ht.py b/tests/hwsim/test_ap_ht.py index 86c8bdec8..4ae02234e 100644 --- a/tests/hwsim/test_ap_ht.py +++ b/tests/hwsim/test_ap_ht.py @@ -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":