aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_file.c
diff options
context:
space:
mode:
authorLior David <qca_liord@qca.qualcomm.com>2016-08-03 14:53:21 (GMT)
committerJouni Malinen <j@w1.fi>2016-09-05 18:27:23 (GMT)
commitd1723c5566d0b582cf4309e725e22970fa1ce0a1 (patch)
tree6b22bc6f9c4aabe75890a10867766b0a8a3f3187 /wpa_supplicant/config_file.c
parentfaecb39236f79f2b3f23d20d85b0353c6541f580 (diff)
downloadhostap-d1723c5566d0b582cf4309e725e22970fa1ce0a1.zip
hostap-d1723c5566d0b582cf4309e725e22970fa1ce0a1.tar.gz
hostap-d1723c5566d0b582cf4309e725e22970fa1ce0a1.tar.bz2
wpa_supplicant: Allow FTM functionality to be published
Add configuration options that control publishing of fine timing measurement (FTM) responder and initiator functionality via bits 70, 71 of Extended Capabilities element. Typically, FTM functionality is controlled by a location framework outside wpa_supplicant. When framework is activated, it will use wpa_supplicant to configure the STA/AP to publish the FTM functionality. See IEEE P802.11-REVmc/D7.0, 9.4.2.27. Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/config_file.c')
-rw-r--r--wpa_supplicant/config_file.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c
index 994d5ea..7ae1654 100644
--- a/wpa_supplicant/config_file.c
+++ b/wpa_supplicant/config_file.c
@@ -1339,6 +1339,11 @@ static void wpa_config_write_global(FILE *f, struct wpa_config *config)
if (config->gas_address3)
fprintf(f, "gas_address3=%d\n", config->gas_address3);
+
+ if (config->ftm_responder)
+ fprintf(f, "ftm_responder=%d\n", config->ftm_responder);
+ if (config->ftm_initiator)
+ fprintf(f, "ftm_initiator=%d\n", config->ftm_initiator);
}
#endif /* CONFIG_NO_CONFIG_WRITE */