summaryrefslogtreecommitdiff
path: root/package/mac80211/files
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
commit1104a67439395584fd559d5da88ab102e31cfc48 (patch)
tree35ae0dcdf6607513ea08127def043f5996003de2 /package/mac80211/files
parentc74364cc38195b5e2d33743055bacf185f154b03 (diff)
downloadmtk-20170518-1104a67439395584fd559d5da88ab102e31cfc48.zip
mtk-20170518-1104a67439395584fd559d5da88ab102e31cfc48.tar.gz
mtk-20170518-1104a67439395584fd559d5da88ab102e31cfc48.tar.bz2
mac80211: fix default channel selection in mac80211.sh (thanks to blubberdiblub)
SVN-Revision: 18577
Diffstat (limited to 'package/mac80211/files')
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index b7984a3..f530d7e 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