From d5571831506a14622f345954314051f9e712aa85 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 17 Jul 2017 17:47:25 +0300 Subject: [PATCH] tests: Rejection of group-addressed RRM measurement request Signed-off-by: Jouni Malinen --- tests/hwsim/test_rrm.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/hwsim/test_rrm.py b/tests/hwsim/test_rrm.py index 39c558b6a..38c7947f0 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 ")