tests: Invalid WMM Action frame
This is a regression test case for a AP mode WMM Action frame parsing issue. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
ef566a4d4f
commit
6838452db8
1 changed files with 12 additions and 0 deletions
|
@ -60,6 +60,18 @@ def test_ap_open_unknown_action(dev, apdev):
|
||||||
if "result=SUCCESS" not in ev:
|
if "result=SUCCESS" not in ev:
|
||||||
raise Exception("AP did not ack Action frame")
|
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):
|
def test_ap_open_reconnect_on_inactivity_disconnect(dev, apdev):
|
||||||
"""Reconnect to open mode AP after inactivity related disconnection"""
|
"""Reconnect to open mode AP after inactivity related disconnection"""
|
||||||
hapd = hostapd.add_ap(apdev[0]['ifname'], { "ssid": "open" })
|
hapd = hostapd.add_ap(apdev[0]['ifname'], { "ssid": "open" })
|
||||||
|
|
Loading…
Reference in a new issue