aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorKyle Copperfield <kmcopper@danwin1210.me>2019-10-31 20:03:39 +0000
committerPetr Štetiar <ynezz@true.cz>2019-11-14 20:59:58 +0100
commita6e7f68c7f7539d20d884acc06c07b53e9683d93 (patch)
tree9420b395e412861800c984756890c7780d9f7bec /package
parentf6111dbeedaa1407326eb81a8d4bd37ed4654cf1 (diff)
downloadupstream-a6e7f68c7f7539d20d884acc06c07b53e9683d93.tar.gz
upstream-a6e7f68c7f7539d20d884acc06c07b53e9683d93.tar.bz2
upstream-a6e7f68c7f7539d20d884acc06c07b53e9683d93.zip
hostapd: add IEEE 802.11k support
Enables radio resource management to be reported by hostapd to clients. Ref: https://github.com/lede-project/source/pull/1430 Co-developed-by: Lorenzo Santina <lorenzo.santina@edu.unito.it> Signed-off-by: Lorenzo Santina <lorenzo.santina@edu.unito.it> Signed-off-by: Kyle Copperfield <kmcopper@danwin1210.me> [removed the DMARC crap] Signed-off-by: Petr Štetiar <ynezz@true.cz> (cherry picked from commit 87f9292300cf56ad17f44363ced213c59a95ef44)
Diffstat (limited to 'package')
-rw-r--r--package/network/services/hostapd/files/hostapd.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index fdbce815df..3c1504ca60 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -223,6 +223,8 @@ hostapd_common_add_bss_config() {
config_add_int time_advertisement
config_add_string time_zone
+ config_add_boolean ieee80211k rrm_neighbor_report rrm_beacon_report
+
config_add_boolean ieee80211r pmk_r1_push ft_psk_generate_local ft_over_ds
config_add_int r0_key_lifetime reassociation_deadline
config_add_string mobility_domain r1_key_holder
@@ -489,6 +491,17 @@ hostapd_set_bss_options() {
append bss_conf "bss_transition=$bss_transition" "$N"
fi
+ json_get_vars ieee80211k
+ 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
+
if [ "$wpa" -ge "1" ]; then
json_get_vars ieee80211r
set_default ieee80211r 0