]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: WMM parameter update failing during beacon template update
authorJouni Malinen <j@w1.fi>
Sun, 28 Feb 2021 20:58:24 +0000 (22:58 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 28 Feb 2021 20:58:24 +0000 (22:58 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_params.py

index 07351272a3ebac48d097b8a3b8e03ab1936de82e..5e9650b344c4e555e25da736e83fd3fc3e7c69f5 100644 (file)
@@ -614,6 +614,17 @@ def test_ap_tx_queue_params_invalid(dev, apdev):
     if "FAIL" not in hapd.request('SET wmm_ac_bk_cwmax 3'):
         raise Exception("AC cwMax < cwMin accepted")
 
+    hapd.request("SET tx_queue_data2_cwmax 1023")
+    hapd.set("wmm_ac_bk_cwmax", "10")
+    # Invalid IEs to cause WMM parameter update failing
+    hapd.set("vendor_elements", "dd04112233")
+    hapd.set("wmm_ac_be_cwmin", "3")
+    # Valid IEs to cause WMM parameter update succeeding
+    hapd.set("vendor_elements", "dd0411223344")
+    hapd.set("wmm_ac_be_cwmin", "3")
+
+    dev[0].connect(ssid, key_mgmt="NONE", scan_freq="2412")
+
 def test_ap_beacon_rate_legacy(dev, apdev):
     """Open AP with Beacon frame TX rate 5.5 Mbps"""
     hapd = hostapd.add_ap(apdev[0], {'ssid': 'beacon-rate'})