瀏覽代碼

mac80211: Fix setting radio htmode when using mesh mode

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 <[email protected]>
Enrique Rodríguez Valencia 5 年之前
父節點
當前提交
84c96de606
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh

+ 1 - 0
package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh

@@ -782,6 +782,7 @@ mac80211_setup_vif() {
 	case "$mode" in
 	case "$mode" in
 		mesh)
 		mesh)
 			wireless_vif_parse_encryption
 			wireless_vif_parse_encryption
+			[ -z "$htmode" ] && htmode="NOHT";
 			freq="$(get_freq "$phy" "$channel")"
 			freq="$(get_freq "$phy" "$channel")"
 			if [ "$wpa" -gt 0 -o "$auto_channel" -gt 0 ] || chan_is_dfs "$phy" "$channel"; then
 			if [ "$wpa" -gt 0 -o "$auto_channel" -gt 0 ] || chan_is_dfs "$phy" "$channel"; then
 				mac80211_setup_supplicant $vif_enable || failed=1
 				mac80211_setup_supplicant $vif_enable || failed=1