From 84c96de60630418275f7d2ea7d2e31bc41cee175 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Enrique=20Rodr=C3=ADguez=20Valencia?= Date: Tue, 12 May 2020 19:35:43 +0200 Subject: [PATCH] mac80211: Fix setting radio htmode when using mesh mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When configuring the radio in legacy mode from luci, the htmode is not set correctly to NOHT, causing the radio in mesh mode to be set to HT40. Signed-off-by: Enrique Rodríguez Valencia --- package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh index 7ca138c68c..c184eef641 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -782,6 +782,7 @@ mac80211_setup_vif() { case "$mode" in mesh) wireless_vif_parse_encryption + [ -z "$htmode" ] && htmode="NOHT"; freq="$(get_freq "$phy" "$channel")" if [ "$wpa" -gt 0 -o "$auto_channel" -gt 0 ] || chan_is_dfs "$phy" "$channel"; then mac80211_setup_supplicant $vif_enable || failed=1 -- 2.30.2