]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Do not enable VHT for EHT test cases on 2.4 GHz
authorJouni Malinen <quic_jouni@quicinc.com>
Thu, 25 Jan 2024 17:41:33 +0000 (19:41 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 25 Jan 2024 17:41:33 +0000 (19:41 +0200)
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/hostapd.py

index c0b76b490dd9b22ac2e841af1d18b026b4a7167b..754faf62364a51fdc066458f8be002e45a27dbdf 100644 (file)
@@ -1026,7 +1026,10 @@ def cfg_mld_link_file(ifname, params):
     f.write("ctrl_interface=%s\n" % ctrl_iface)
     f.write("driver=nl80211\n")
     f.write("ieee80211n=1\n")
-    f.write("ieee80211ac=1\n")
+    if 'hw_mode' in params and params['hw_mode'] == 'a' and \
+       ('op_class' not in params or \
+        int(params['op_class']) not in [131, 132, 133, 134, 135, 136, 137]):
+        f.write("ieee80211ac=1\n")
     f.write("ieee80211ax=1\n")
     f.write("ieee80211be=1\n")
     f.write("interface=%s\n" % ifname)