hostapd: allow reduced neighbor report configuration
authorDavid Bauer <mail@david-bauer.net>
Tue, 16 May 2023 21:58:39 +0000 (23:58 +0200)
committerDavid Bauer <mail@david-bauer.net>
Tue, 22 Aug 2023 11:37:27 +0000 (13:37 +0200)
Reduced neighbor reports can be enabled by setting the "rnr" uci option
to 1.

Signed-off-by: David Bauer <mail@david-bauer.net>
package/network/services/hostapd/files/hostapd.sh

index 65ae662c4d7823d09035407f00dc311d103c0494..88dfe25091f9b6553326003a039f6c7caa163fb6 100644 (file)
@@ -867,8 +867,9 @@ hostapd_set_bss_options() {
        [ "$bss_transition" -eq "1" ] && append bss_conf "bss_transition=1" "$N"
        [ "$mbo" -eq 1 ] && append bss_conf "mbo=1" "$N"
 
-       json_get_vars ieee80211k rrm_neighbor_report rrm_beacon_report
+       json_get_vars ieee80211k rrm_neighbor_report rrm_beacon_report rnr
        set_default ieee80211k 0
+       set_default rnr 0
        if [ "$ieee80211k" -eq "1" ]; then
                set_default rrm_neighbor_report 1
                set_default rrm_beacon_report 1
@@ -879,6 +880,7 @@ hostapd_set_bss_options() {
 
        [ "$rrm_neighbor_report" -eq "1" ] && append bss_conf "rrm_neighbor_report=1" "$N"
        [ "$rrm_beacon_report" -eq "1" ] && append bss_conf "rrm_beacon_report=1" "$N"
+       [ "$rnr" -eq "1" ] && append bss_conf "rnr=1" "$N"
 
        json_get_vars ftm_responder stationary_ap lci civic
        set_default ftm_responder 0