]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
RNR: Add configuration option
authorJohn Crispin <john@phrozen.org>
Tue, 27 Jul 2021 23:42:19 +0000 (16:42 -0700)
committerJouni Malinen <j@w1.fi>
Mon, 8 Nov 2021 21:57:43 +0000 (23:57 +0200)
Adds configuration option 'rnr' to enable the reduced neighbor report
elements in Beacon and Probe Response frames.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Aloka Dixit <alokad@codeaurora.org>
hostapd/config_file.c
hostapd/hostapd.conf
src/ap/ap_config.h

index a57797262b488cd702cf45083d4b37e87852b72e..daf3f37ad99e73cc52601b299b7c338afec823ea 100644 (file)
@@ -4712,6 +4712,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
                if (get_hex_config(bss->ext_capa, EXT_CAPA_MAX_LEN,
                                   line, "ext_capa", pos))
                        return 1;
+       } else if (os_strcmp(buf, "rnr") == 0) {
+               bss->rnr = atoi(pos);
        } else {
                wpa_printf(MSG_ERROR,
                           "Line %d: unknown configuration item '%s'",
index 6b807f4894d984760dc654d210945e4fd25ade33..67d4cefb920b6a65ff04b1760523a7fd301872cc 100644 (file)
@@ -2921,6 +2921,9 @@ own_ip_addr=127.0.0.1
 # that allows sending of such data. Default: 0.
 #stationary_ap=0
 
+# Enable reduced neighbor reporting (RNR)
+#rnr=0
+
 ##### Airtime policy configuration ###########################################
 
 # Set the airtime policy operating mode:
index 3ba368987a7d2e85c78769701f15c0e6f1ab76e6..b8f791e56307ae13cd4b188f2f487eeb21e173a6 100644 (file)
@@ -894,6 +894,8 @@ struct hostapd_bss_config {
 
        u8 ext_capa_mask[EXT_CAPA_MAX_LEN];
        u8 ext_capa[EXT_CAPA_MAX_LEN];
+
+       u8 rnr;
 };
 
 /**