aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-07-17 14:47:25 (GMT)
committerJouni Malinen <j@w1.fi>2017-07-17 14:47:25 (GMT)
commitd5571831506a14622f345954314051f9e712aa85 (patch)
tree3869b69e22f6defcced30fc83012ce22538da892 /tests
parentb3c148e9f8a172ec19df810ecb07362315ea7b3d (diff)
downloadhostap-d5571831506a14622f345954314051f9e712aa85.zip
hostap-d5571831506a14622f345954314051f9e712aa85.tar.gz
hostap-d5571831506a14622f345954314051f9e712aa85.tar.bz2
tests: Rejection of group-addressed RRM measurement request
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_rrm.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/hwsim/test_rrm.py b/tests/hwsim/test_rrm.py
index 39c558b..38c7947 100644
--- a/tests/hwsim/test_rrm.py
+++ b/tests/hwsim/test_rrm.py
@@ -1794,6 +1794,17 @@ def test_rrm_req_proto(dev, apdev):
raise Exception("No response seen at the AP")
hapd.dump_monitor()
+ # Verify rejection of a group-addressed request frame
+ hdr = "d0003a01" + "ffffffffffff" + 2*bssid.replace(':', '') + "1000"
+ # "RRM: Parallel measurements are not supported, reject"
+ t = "05000100002603010105"
+ if "OK" not in dev[0].request("MGMT_RX_PROCESS freq=2412 datarate=0 ssi_signal=-30 frame=" + hdr + t):
+ raise Exception("MGMT_RX_PROCESS failed")
+ ev = hapd.wait_event(["MGMT-RX"], timeout=0.1)
+ if ev is not None:
+ raise Exception("Unexpected response seen at the AP (broadcast request rejected)")
+ hapd.dump_monitor()
+
hapd.set("ext_mgmt_frame_handling", "0")
dev[0].request("SET ext_mgmt_frame_handling 0")
dev[0].request("SET LCI ")