aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2020-10-18 22:35:31 +0200
committerDavid Bauer <mail@david-bauer.net>2020-10-28 00:08:22 +0100
commite66bd0eb0469d6b53da72acf28043d9a552470fe (patch)
tree9ad92fffc56f04757b7da8389133c112c276b3f0 /package/network
parent43fe0bd18dcce00e73259d20fd8e07fd0add5bd1 (diff)
downloadupstream-e66bd0eb0469d6b53da72acf28043d9a552470fe.tar.gz
upstream-e66bd0eb0469d6b53da72acf28043d9a552470fe.tar.bz2
upstream-e66bd0eb0469d6b53da72acf28043d9a552470fe.zip
hostapd: make rrm report independent of ieee80211k setting
Allow to configure both RRM beacon as well as neighbor reports independently and only enable them by default in case the ieee80211k config option is set. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'package/network')
-rw-r--r--package/network/services/hostapd/files/hostapd.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index 3290358ed2..832a056339 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -625,17 +625,16 @@ hostapd_set_bss_options() {
append bss_conf "bss_transition=$bss_transition" "$N"
fi
- json_get_vars ieee80211k
+ json_get_vars ieee80211k rrm_neighbor_report rrm_beacon_report
set_default ieee80211k 0
if [ "$ieee80211k" -eq "1" ]; then
- json_get_vars rrm_neighbor_report rrm_beacon_report
-
set_default rrm_neighbor_report 1
set_default rrm_beacon_report 1
- append bss_conf "rrm_neighbor_report=$rrm_neighbor_report" "$N"
- append bss_conf "rrm_beacon_report=$rrm_beacon_report" "$N"
fi
+ [ "$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"
+
if [ "$wpa" -ge "1" ]; then
json_get_vars ieee80211r
set_default ieee80211r 0