[PATCH 01/12] driver: Add RRM-related definitions to driver

Ilan Peer ilan.peer at intel.com
Wed Nov 5 03:42:45 EST 2014


From: Assaf Krauss <assaf.krauss at intel.com>

Add definitions for RRM (Radio Resource Measurement) support:
1. Flags that specify the RRM capabilities of the underlying driver
2. Flag for RRM in management frames' CapabilityInfo field
3. Indication in association parameters regarding an RRM connection

Signed-off-by: Assaf Krauss <assaf.krauss at intel.com>
---
 src/drivers/driver.h | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index 8420a56..799fdf9 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -177,6 +177,7 @@ struct hostapd_hw_modes {
 #define IEEE80211_CAP_ESS	0x0001
 #define IEEE80211_CAP_IBSS	0x0002
 #define IEEE80211_CAP_PRIVACY	0x0010
+#define IEEE80211_CAP_RRM	0x1000
 
 /* DMG (60 GHz) IEEE 802.11ad */
 /* type - bits 0..1 */
@@ -710,6 +711,12 @@ struct wpa_driver_associate_params {
 	 * supports it.
 	 */
 	int req_key_mgmt_offload;
+
+	/**
+	 * Flag for indicating whether this association includes support for
+	 * RRM (Radio Resource Measurements)
+	 */
+	int rrm_used;
 };
 
 enum hide_ssid {
@@ -1118,6 +1125,24 @@ struct wpa_driver_capa {
 	unsigned int extended_capa_len;
 
 	struct wowlan_triggers wowlan_triggers;
+
+/* Driver adds the DS Params Set IE in probe requests */
+#define WPA_DRIVER_FLAGS_DS_PARAM_SET_IE_IN_PROBES	0x00000001
+/* Driver adds the WPA TPC IE in probe requests */
+#define WPA_DRIVER_FLAGS_WFA_TPC_IE_IN_PROBES		0x00000002
+/* Driver handles quiet period requests */
+#define WPA_DRIVER_FLAGS_QUIET				0x00000004
+/**
+ * Driver is capable of inserting the current tx-power value into the body of
+ * transmitted frames.
+ * Background: Some action frames include a TPC Report IE. This IE contains a
+ * tx power field, which has to be updated by lower levels. One such action
+ * frame is Link Measurement Report (part of RRM). Another is  TPC Report (part
+ * of spectrum management). Note that this insertion takes place at a fixed
+ * offset, namely the 6th byte in the action frame body.
+ */
+#define WPA_DRIVER_FLAGS_TX_POWER_INSERTION		0x00000008
+	u32 rrm_flags;
 };
 
 
-- 
1.8.3.2



More information about the HostAP mailing list