[1/3] driver: Add FTM responder configuration APIs

Message ID 20181203170622.9522-2-andrei.otcheretianski@intel.com
State New
Headers show
Series
  • AP: Support FTM responder configuration
Related show

Commit Message

Andrei Otcheretianski Dec. 3, 2018, 5:06 p.m.
Add configuration options to enable FTM responder and configure LCI and
civic parameters.
In addition, introduce WPA_DRIVER_FLAGS_FTM_RESPONDER flag, which can
be used to indicate FTM responder support in AP mode.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
---
 src/drivers/driver.h | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

Patch

diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index 4ac9f16a0e..f00da052fe 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -1367,6 +1367,23 @@  struct wpa_driver_ap_params {
 	 * service).
 	 */
 	int multicast_to_unicast;
+
+	/**
+	 * ftm_responder - Whether FTM responder is enabled
+	 */
+	int ftm_responder;
+
+	/**
+	 * lci - Binary data, the content of a LCI report IE with type 8 as
+	 * defined in IEEE 802.11 - 2016 9.4.2.22.10
+	 */
+	const struct wpabuf *lci;
+
+	/**
+	 * civic - Binary data, the content of a measurement report IE with
+	 * type 11 as defined in IEEE 802.11-2016 9.4.2.22.13
+	 */
+	const struct wpabuf *civic;
 };
 
 struct wpa_driver_mesh_bss_params {
@@ -1579,6 +1596,8 @@  struct wpa_driver_capa {
 #define WPA_DRIVER_FLAGS_MFP_OPTIONAL		0x0040000000000000ULL
 /** Driver is a self-managed regulatory device */
 #define WPA_DRIVER_FLAGS_SELF_MANAGED_REGULATORY       0x0080000000000000ULL
+/** Driver supports FTM responder functionality */
+#define WPA_DRIVER_FLAGS_FTM_RESPONDER		0x0100000000000000ULL
 	u64 flags;
 
 #define FULL_AP_CLIENT_STATE_SUPP(drv_flags) \