From 4cb618cf2d4ed5a0dbb1ad70795a5764abcb1f05 Mon Sep 17 00:00:00 2001 From: Andrei Otcheretianski Date: Mon, 3 Dec 2018 19:06:20 +0200 Subject: [PATCH] driver: Add FTM responder configuration APIs 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 --- src/drivers/driver.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/drivers/driver.h b/src/drivers/driver.h index 6b8334711..4250caa04 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 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) \