From af6a2b727c645bdbc5faf4c9c8f52ccc134fa38c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 29 Mar 2020 21:09:56 +0300 Subject: [PATCH] tests: Use complete CHAN_SWITCH parameters in ap_vht_csa_vht40_disable 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 --- tests/hwsim/test_ap_vht.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/test_ap_vht.py b/tests/hwsim/test_ap_vht.py index 523c9c04b..4e8540cf0 100644 --- a/tests/hwsim/test_ap_vht.py +++ b/tests/hwsim/test_ap_vht.py @@ -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")