]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add hostapd configuration parameter rrm_beacon_report
authorJouni Malinen <j@w1.fi>
Sun, 1 Jan 2017 22:29:30 +0000 (00:29 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 3 Jan 2017 14:02:58 +0000 (16:02 +0200)
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>
hostapd/config_file.c
hostapd/hostapd.conf

index 7e68b3800bf3726ea0f7b78c8d555f6e0a345ece..b3970345d29796b238c04f6868361d8da8890616 100644 (file)
@@ -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) {
index e4ef37ebcd77622918cf07032917d27761557a84..c9b105aa956cce8df5f3bdb51c9be5f8e0ea07ea 100644 (file)
@@ -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.