]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Beacon rate configuration for 54 Mbps
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 18 Aug 2023 18:16:04 +0000 (21:16 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 18 Aug 2023 18:16:04 +0000 (21:16 +0300)
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_ap_params.py

index fcc8b384888f9f9d82851a2f960b83103be7871c..1eeebbd4edb3e28e5aba740091115a5eb5131c8b 100644 (file)
@@ -650,12 +650,19 @@ def test_ap_beacon_rate_legacy(dev, apdev):
 
 def test_ap_beacon_rate_legacy2(dev, apdev):
     """Open AP with Beacon frame TX rate 12 Mbps in VHT BSS"""
+    run_ap_beacon_rate_legacy(dev, apdev, "120")
+
+def test_ap_beacon_rate_legacy3(dev, apdev):
+    """Open AP with Beacon frame TX rate 54 Mbps in VHT BSS"""
+    run_ap_beacon_rate_legacy(dev, apdev, "540")
+
+def run_ap_beacon_rate_legacy(dev, apdev, rate):
     hapd = hostapd.add_ap(apdev[0], {'ssid': 'beacon-rate'})
     res = hapd.get_driver_status_field('capa.flags')
     if (int(res, 0) & 0x0000080000000000) == 0:
         raise HwsimSkip("Setting Beacon frame TX rate not supported")
     hapd.disable()
-    hapd.set('beacon_rate', '120')
+    hapd.set('beacon_rate', rate)
     hapd.set("country_code", "DE")
     hapd.set("hw_mode", "a")
     hapd.set("channel", "36")