tests: WEP and HE

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2021-03-14 18:21:47 +02:00
parent 2cc7f6dfe5
commit a288775851

View 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])