aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd/files
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2017-11-07 11:48:40 +0100
committerFelix Fietkau <nbd@nbd.name>2017-11-15 18:49:12 +0100
commit772afef61dc68e2470f4da130fac862ccf2fb105 (patch)
treea2e9846c861add77f77e1efb18b226557f930649 /package/network/services/hostapd/files
parent43f66943d0dbf0ed0ec2a9cb071d0fbded2fbe35 (diff)
downloadupstream-772afef61dc68e2470f4da130fac862ccf2fb105.tar.gz
upstream-772afef61dc68e2470f4da130fac862ccf2fb105.tar.bz2
upstream-772afef61dc68e2470f4da130fac862ccf2fb105.zip
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]
Diffstat (limited to 'package/network/services/hostapd/files')
-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 e48a54fc84..6e95805e4b 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -730,6 +730,7 @@ wpa_supplicant_add_network() {
esac
}
[ -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