nl80211: Register Link Measurement Request Action frame
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Wed, 5 Nov 2014 08:42:55 +0000 (03:42 -0500)
committerJouni Malinen <j@w1.fi>
Sat, 22 Nov 2014 19:38:30 +0000 (21:38 +0200)
Add link measurement request to registration of Action frames to be
handled by wpa_supplicant if the driver supports TX power value
insertation.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
src/drivers/driver_nl80211.c

index b6dd7f6..00e6c0c 100644 (file)
@@ -1952,6 +1952,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;