summaryrefslogtreecommitdiff
path: root/package/network
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2017-11-07 11:48:40 +0100
committerJo-Philipp Wich <jo@mein.io>2017-12-13 16:50:06 +0100
commit05f0fac189984981e3f28288e44d9afdd088dd77 (patch)
tree29ffbda954efaf88d3421bc4f00724b184fe73b6 /package/network
parent7f78a862540529086adf11536915dd2e03b17d7c (diff)
downloadmtk-20170518-05f0fac189984981e3f28288e44d9afdd088dd77.zip
mtk-20170518-05f0fac189984981e3f28288e44d9afdd088dd77.tar.gz
mtk-20170518-05f0fac189984981e3f28288e44d9afdd088dd77.tar.bz2
hostapd: explicitly set beacon interval for wpa_supplicant
The beacon_int is currently set explicitly for hostapd and when LEDE uses iw to join and IBSS/mesh. But it was not done when wpa_supplicant was used to join an encrypted IBSS or mesh. This configuration is required when an AP interface is configured together with an mesh interface. The beacon_int= line must therefore be re-added to the wpa_supplicant config. The value is retrieved from the the global variable. Fixes: 1a16cb9c67f0 ("mac80211, hostapd: always explicitly set beacon interval") Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Felix Fietkau <nbd@nbd.name> [rebase] (cherry picked from commit 772afef61dc68e2470f4da130fac862ccf2fb105)
Diffstat (limited to 'package/network')
-rw-r--r--package/network/services/hostapd/files/hostapd.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index 9ad7610..0df4466 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -723,6 +723,7 @@ wpa_supplicant_add_network() {
}
local beacon_int brates mrate
[ -n "$bssid" ] && append network_data "bssid=$bssid" "$N$T"
+ [ -n "$beacon_int" ] && append network_data "beacon_int=$beacon_int" "$N$T"
local bssid_blacklist bssid_whitelist
json_get_values bssid_blacklist bssid_blacklist