From a2887758519fb5999098a75909b3b3803fe5dfc1 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 14 Mar 2021 18:21:47 +0200 Subject: [PATCH] tests: WEP and HE Signed-off-by: Jouni Malinen --- tests/hwsim/test_wep.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/hwsim/test_wep.py b/tests/hwsim/test_wep.py index 6df9ef899..5c1fc9adb 100644 --- a/tests/hwsim/test_wep.py +++ b/tests/hwsim/test_wep.py @@ -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])