]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Invalid WMM Action frame
authorJouni Malinen <j@w1.fi>
Tue, 28 Apr 2015 23:44:59 +0000 (02:44 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 3 May 2015 15:26:50 +0000 (18:26 +0300)
This is a regression test case for a AP mode WMM Action frame parsing
issue.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_open.py

index 7ed517bce7560994be407635b575c35c7d54286c..b5114be8753d0d7041ad4b262361e38b8dbf6ffd 100644 (file)
@@ -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" })