hostapd: explicitly set beacon interval for wpa_supplicant
authorSven Eckelmann <sven@narfation.org>
Tue, 7 Nov 2017 10:48:40 +0000 (11:48 +0100)
committerFelix Fietkau <nbd@nbd.name>
Wed, 15 Nov 2017 17:49:12 +0000 (18:49 +0100)
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]
package/network/services/hostapd/files/hostapd.sh

index e48a54fc8430ce5d3fb1f5cde61358528ab60945..6e95805e4bacf768b81ef358a6de74661b95f92a 100644 (file)
@@ -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