]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: WEP and HE
authorJouni Malinen <j@w1.fi>
Sun, 14 Mar 2021 16:21:47 +0000 (18:21 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 14 Mar 2021 16:21:47 +0000 (18:21 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wep.py

index 6df9ef899457b0122fdfe216336e5c3461942f1f..5c1fc9adb490191b8552bbc646e911dcc56ec381 100644 (file)
@@ -130,6 +130,22 @@ def test_wep_ht_vht(dev, apdev):
         dev[0].request("DISCONNECT")
         clear_regdom(hapd, dev)
 
+def test_wep_he(dev, apdev):
+    """WEP and HE"""
+    check_wep_capa(dev[0])
+    dev[0].flush_scan_cache()
+    params = {"ssid": "test-he-wep",
+              "ieee80211ax": "1",
+              "wep_key0": '"hello"'}
+    hapd = hostapd.add_ap(apdev[0], params)
+    dev[0].connect("test-he-wep", scan_freq="2412", key_mgmt="NONE",
+                   wep_key0='"hello"')
+    hwsim_utils.test_connectivity(dev[0], hapd)
+    status = hapd.get_status()
+    logger.info("hostapd STATUS: " + str(status))
+    if status["ieee80211ax"] != "0":
+        raise Exception("Unexpected STATUS ieee80211ax value")
+
 def test_wep_ifdown(dev, apdev):
     """AP with WEP and external ifconfig down"""
     check_wep_capa(dev[0])