[LEDE-DEV] [PATCH v2] hostapd: explicitly set beacon interval for wpa_supplicant

Sven Eckelmann sven.eckelmann at openmesh.com
Tue Nov 7 05:01:27 PST 2017


The beacon_int is currently set explicitly for hostapd and when LEDE uses
iw to join an 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.eckelmann at openmesh.com>
---
This patch was only tested with LEDE 17.01.4. And only in sta and mesh
mode.

This patch also requires
https://git.lede-project.org/?p=source.git;a=commitdiff;h=5e481881d7abd814abbf40a046be90cbaf835e72
to be backported to 17.01

v2:
 - remove the line with the local variable declarations and refer to the
   commit 5e481881d7 instead
---
 package/network/services/hostapd/files/hostapd.sh | 1 +
 1 file changed, 1 insertion(+)

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
-- 
2.11.0




More information about the Lede-dev mailing list