]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Use complete CHAN_SWITCH parameters in ap_vht_csa_vht40_disable
authorJouni Malinen <j@w1.fi>
Sun, 29 Mar 2020 18:09:56 +0000 (21:09 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 29 Mar 2020 18:15:16 +0000 (21:15 +0300)
Specify the secondary channel offset and correct center_freq1 value to
make the parameters complete for a 40 MHz channel.

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

index 523c9c04ba8b96269f6563ac77742ed925688fc5..4e8540cf0ba2a53828955a5b0d0cd34491c6cf05 100644 (file)
@@ -892,7 +892,7 @@ def test_ap_vht_csa_vht40_disable(dev, apdev):
         dev[0].connect("vht", key_mgmt="NONE", scan_freq="5745")
         hwsim_utils.test_connectivity(dev[0], hapd)
 
-        hapd.request("CHAN_SWITCH 5 5200 center_freq1=5200 bandwidth=40 ht")
+        hapd.request("CHAN_SWITCH 5 5200 center_freq1=5210 sec_channel_offset=1 bandwidth=40 ht")
         ev = hapd.wait_event(["AP-CSA-FINISHED"], timeout=10)
         if ev is None:
             raise Exception("CSA finished event timed out")