diff --git a/tests/hwsim/test_ap_open.py b/tests/hwsim/test_ap_open.py index 7ed517bce..b5114be87 100644 --- a/tests/hwsim/test_ap_open.py +++ b/tests/hwsim/test_ap_open.py @@ -60,6 +60,18 @@ def test_ap_open_unknown_action(dev, apdev): if "result=SUCCESS" not in ev: raise Exception("AP did not ack Action frame") +def test_ap_open_invalid_wmm_action(dev, apdev): + """AP with open mode configuration and invalid WMM Action frame""" + hapd = hostapd.add_ap(apdev[0]['ifname'], { "ssid": "open" }) + dev[0].connect("open", key_mgmt="NONE", scan_freq="2412") + bssid = apdev[0]['bssid'] + cmd = "MGMT_TX {} {} freq=2412 action=1100".format(bssid, bssid) + if "FAIL" in dev[0].request(cmd): + raise Exception("Could not send test Action frame") + ev = dev[0].wait_event(["MGMT-TX-STATUS"], timeout=10) + if ev is None or "result=SUCCESS" not in ev: + raise Exception("AP did not ack Action frame") + def test_ap_open_reconnect_on_inactivity_disconnect(dev, apdev): """Reconnect to open mode AP after inactivity related disconnection""" hapd = hostapd.add_ap(apdev[0]['ifname'], { "ssid": "open" })