]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Rejection of group-addressed RRM measurement request
authorJouni Malinen <j@w1.fi>
Mon, 17 Jul 2017 14:47:25 +0000 (17:47 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 17 Jul 2017 14:47:25 +0000 (17:47 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_rrm.py

index 39c558b6a76638635f80b5988d565e56341a1858..38c7947f09b96d150ed828400dd1df4f492cc46c 100644 (file)
@@ -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 ")