[PATCH 11/12] nl80211: Register link measurement request action frame

Ilan Peer ilan.peer
Wed Nov 5 00:42:55 PST 2014


From: Andrei Otcheretianski <andrei.otcheretianski at intel.com>

Add link measurement request to registration of
action frames to be handled by wpa_supplicant.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
 src/drivers/driver_nl80211.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 03e6bec..5d229be 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -1944,6 +1944,11 @@ static int nl80211_mgmt_subscribe_non_ap(struct i802_bss *bss)
 	if (nl80211_register_action_frame(bss, (u8 *)"\x05\x05", 2) < 0)
 		ret = -1;
 
+	/* Radio Measurement - Link Measurement Request */
+	if ((drv->capa.rrm_flags & WPA_DRIVER_FLAGS_TX_POWER_INSERTION) &&
+	    (nl80211_register_action_frame(bss, (u8 *)"\x05\x02", 2) < 0))
+		ret = -1;
+
 	nl80211_mgmt_handle_register_eloop(bss);
 
 	return ret;
-- 
1.8.3.2




More information about the Hostap mailing list