]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
driver: Add FTM responder configuration APIs
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Mon, 3 Dec 2018 17:06:20 +0000 (19:06 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 21 Dec 2018 09:18:00 +0000 (11:18 +0200)
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

index 6b8334711c3a2ae2ab2de1a412011a0af659851b..4250caa043e2f59e76ed1c97dfb136e083a2d306 100644 (file)
@@ -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 an LCI report IE with type 8 as
+        * defined in IEEE Std 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 Std 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) \