diff mbox series

tests: Fix ap_vht_csa_vht40 test

Message ID 1534957877-9561-1-git-send-email-andrei.otcheretianski@intel.com
State Accepted
Headers show
Series tests: Fix ap_vht_csa_vht40 test | expand

Commit Message

Andrei Otcheretianski Aug. 22, 2018, 5:11 p.m. UTC
The channel configuration in CHAN_SWITCH command was incorrect. This
resulted in switching to HT40+ channel, while announcing HT40- in the
secondary channel IE. This caused a disconnection after the channel
switch.
Fix that.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
---
 tests/hwsim/test_ap_vht.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jouni Malinen Oct. 16, 2018, 3:37 p.m. UTC | #1
On Wed, Aug 22, 2018 at 08:11:17PM +0300, Andrei Otcheretianski wrote:
> The channel configuration in CHAN_SWITCH command was incorrect. This
> resulted in switching to HT40+ channel, while announcing HT40- in the
> secondary channel IE. This caused a disconnection after the channel
> switch.
> Fix that.

Thanks, applied.
diff mbox series

Patch

diff --git a/tests/hwsim/test_ap_vht.py b/tests/hwsim/test_ap_vht.py
index c9f299f..107fa50 100644
--- a/tests/hwsim/test_ap_vht.py
+++ b/tests/hwsim/test_ap_vht.py
@@ -732,7 +732,7 @@  def test_ap_vht_csa_vht40(dev, apdev):
         dev[0].connect("vht", key_mgmt="NONE", scan_freq="5745")
         hwsim_utils.test_connectivity(dev[0], hapd)
 
-        hapd.request("CHAN_SWITCH 5 5765 sec_channel_offset=-1 center_freq1=5775 bandwidth=40 vht")
+        hapd.request("CHAN_SWITCH 5 5765 sec_channel_offset=-1 center_freq1=5755 bandwidth=40 vht")
         ev = hapd.wait_event(["AP-CSA-FINISHED"], timeout=10)
         if ev is None:
             raise Exception("CSA finished event timed out")