summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-03-29 17:07:22 +0200
committerJouni Malinen <j@w1.fi>2014-03-29 17:07:22 +0200
commit81699e2e6ef58c51c95c5a50d4910994301e2268 (patch)
treef46856764e970015015e38bc1a33034d611c1f11
parent41be44afeb0cb7545ee2bd7d0b7beecccd41c35f (diff)
downloadhostap-81699e2e6ef58c51c95c5a50d4910994301e2268.tar.gz
tests: Unknown Action frame category
Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/test_ap_open.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_open.py b/tests/hwsim/test_ap_open.py
index 5e6b4412e..7352aedf6 100644
--- a/tests/hwsim/test_ap_open.py
+++ b/tests/hwsim/test_ap_open.py
@@ -35,3 +35,17 @@ def test_ap_open_packet_loss(dev, apdev):
ev = dev[i].wait_event(["CTRL-EVENT-CONNECTED"], timeout=20)
if ev is None:
raise Exception("Association with the AP timed out")
+
+def test_ap_open_unknown_action(dev, apdev):
+ """AP with open mode configuration and unknown 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=765432".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:
+ raise Exception("Timeout on MGMT-TX-STATUS")
+ if "result=SUCCESS" not in ev:
+ raise Exception("AP did not ack Action frame")