aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-11-28 13:49:14 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-11-28 13:49:14 +0000
commit7fdea88dc45a31e8b44dcd3f3f7252602bd8d02a (patch)
tree2af4b8d6c5b71c749f107d7e3ccedf8dd33fcd77
parenta2f83c7f824a1dc59a2f6c39f969b18d2e2b699f (diff)
downloadmaster-187ad058-7fdea88dc45a31e8b44dcd3f3f7252602bd8d02a.tar.gz
master-187ad058-7fdea88dc45a31e8b44dcd3f3f7252602bd8d02a.tar.bz2
master-187ad058-7fdea88dc45a31e8b44dcd3f3f7252602bd8d02a.zip
mac80211: fix default channel selection in mac80211.sh (thanks to blubberdiblub)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18577 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/mac80211/Makefile2
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/package/mac80211/Makefile b/package/mac80211/Makefile
index 9440ca6a18..efb68cd8fa 100644
--- a/package/mac80211/Makefile
+++ b/package/mac80211/Makefile
@@ -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
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index b7984a3b7f..f530d7e51d 100644
--- a/package/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/mac80211/files/lib/wifi/mac80211.sh
@@ -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