mac80211: fix default channel selection in mac80211.sh (thanks to blubberdiblub)
authorGabor Juhos <juhosg@openwrt.org>
Sat, 28 Nov 2009 13:49:14 +0000 (13:49 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sat, 28 Nov 2009 13:49:14 +0000 (13:49 +0000)
SVN-Revision: 18577

package/mac80211/Makefile
package/mac80211/files/lib/wifi/mac80211.sh

index 9440ca6a18f2956535105bd016aee9cc9d828f8c..efb68cd8fa277f53b45b8042c3d6a57c3cf0f07b 100644 (file)
@@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
 PKG_NAME:=mac80211
 
 PKG_VERSION:=2009-11-21
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 PKG_SOURCE_URL:= \
        http://www.orbit-lab.org/kernel/compat-wireless-2.6/2009/11 \
        http://wireless.kernel.org/download/compat-wireless-2.6
index b7984a3b7f6225cf9a52e8fb31f64783d2760939..f530d7e51dd75fce345d7d571cd500754c67adab 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