aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-01-01 22:29:30 (GMT)
committerJouni Malinen <j@w1.fi>2017-01-03 14:02:58 (GMT)
commit73a27a6345362f17bee1fb5c52baec560a530fbe (patch)
tree1b5b73888045b06db32132b321e2e2b596cf0038 /hostapd
parentde6ec8b55841d6385be5b2d1c8ac4698fe1a5b60 (diff)
downloadhostap-73a27a6345362f17bee1fb5c52baec560a530fbe.zip
hostap-73a27a6345362f17bee1fb5c52baec560a530fbe.tar.gz
hostap-73a27a6345362f17bee1fb5c52baec560a530fbe.tar.bz2
Add hostapd configuration parameter rrm_beacon_report
rrm_beacon_report=1 can now be used to make hostapd advertise capability for beacon reports (passive, active, table). Actual mechanism for sending out beacon requests will be added in separate commits. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c6
-rw-r--r--hostapd/hostapd.conf3
2 files changed, 9 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 7e68b38..b397034 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -3589,6 +3589,12 @@ static int hostapd_config_fill(struct hostapd_config *conf,
if (atoi(pos))
bss->radio_measurements[0] |=
WLAN_RRM_CAPS_NEIGHBOR_REPORT;
+ } else if (os_strcmp(buf, "rrm_beacon_report") == 0) {
+ if (atoi(pos))
+ bss->radio_measurements[0] |=
+ WLAN_RRM_CAPS_BEACON_REPORT_PASSIVE |
+ WLAN_RRM_CAPS_BEACON_REPORT_ACTIVE |
+ WLAN_RRM_CAPS_BEACON_REPORT_TABLE;
} else if (os_strcmp(buf, "gas_address3") == 0) {
bss->gas_address3 = atoi(pos);
} else if (os_strcmp(buf, "stationary_ap") == 0) {
diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
index e4ef37e..c9b105a 100644
--- a/hostapd/hostapd.conf
+++ b/hostapd/hostapd.conf
@@ -1967,6 +1967,9 @@ own_ip_addr=127.0.0.1
# Enable neighbor report via radio measurements
#rrm_neighbor_report=1
+# Enable beacon report via radio measurements
+#rrm_beacon_report=1
+
# Publish fine timing measurement (FTM) responder functionality
# This parameter only controls publishing via Extended Capabilities element.
# Actual functionality is managed outside hostapd.