mac80211: fix default channel selection in mac80211.sh (thanks to blubberdiblub)
[openwrt.git] / package / mac80211 / files / lib / wifi / mac80211.sh
index b7984a3..f530d7e 100644 (file)
@@ -315,7 +315,7 @@ detect_mac80211() {
                        [ "$(($ht_cap & 64))" -eq 64 ] && append ht_capab "$list        SHORT-GI-40" "$N"
                        [ "$(($ht_cap & 4096))" -eq 4096 ] && append ht_capab "$list    DSSS_CCK-40" "$N"
                }
-               iw phy "$dev" info | grep -q '2412 MHz' || mode_band="a"; channel="36"
+               iw phy "$dev" info | grep -q '2412 MHz' || { mode_band="a"; channel="36"; }
 
                cat <<EOF
 config wifi-device  wifi$devidx
This page took 0.024186 seconds and 4 git commands to generate.