From: Felix Fietkau Date: Sat, 30 Mar 2019 09:09:32 +0000 (+0100) Subject: mac80211: set noscan=1 if sta/adhoc/mesh interfaces are present X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b3d8b3ab8e6fc0c0355f0680fc1c5f9c90a0c35a;p=openwrt%2Fstaging%2Fmkresin.git mac80211: set noscan=1 if sta/adhoc/mesh interfaces are present Fixes channel selection issues and suppresses an unnecessary extra scan Signed-off-by: Felix Fietkau --- diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh index e9389e3447..0426cb60f7 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -99,6 +99,8 @@ mac80211_hostapd_setup_base() { json_get_vars noscan ht_coex json_get_values ht_capab_list ht_capab + [ -n "$noscan" -a "$noscan" -gt 0 ] && hostapd_noscan=1 + ieee80211n=1 ht_capab= case "$htmode" in @@ -307,7 +309,7 @@ mac80211_hostapd_setup_base() { cat >> "$hostapd_conf_file" <