summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorTravis Kemen <thepeople@openwrt.org>2012-07-04 00:25:46 +0000
committerTravis Kemen <thepeople@openwrt.org>2012-07-04 00:25:46 +0000
commit62d9f257a14148d299fd403969fed7e870052416 (patch)
tree06a1aec17fa2045756e1d1dbc347897332f6b81a /package
parent9452ad74bbada2fcdbd91259f02ed8e979d838e8 (diff)
downloadmtk-20170518-62d9f257a14148d299fd403969fed7e870052416.zip
mtk-20170518-62d9f257a14148d299fd403969fed7e870052416.tar.gz
mtk-20170518-62d9f257a14148d299fd403969fed7e870052416.tar.bz2
mac80211: make channel bandwidth setting generic
SVN-Revision: 32596
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index 8bb9c42..6b907b6 100644
--- a/package/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/mac80211/files/lib/wifi/mac80211.sh
@@ -312,8 +312,9 @@ enable_mac80211() {
}
}
- config_get ath9k_chanbw "$device" ath9k_chanbw
- [ -n "$ath9k_chanbw" -a -d /sys/kernel/debug/ieee80211/$phy/ath9k ] && echo "$ath9k_chanbw" > /sys/kernel/debug/ieee80211/$phy/ath9k/chanbw
+ config_get chanbw "$device" chanbw
+ [ -n "$chanbw" -a -d /sys/kernel/debug/ieee80211/$phy/ath9k ] && echo "$chanbw" > /sys/kernel/debug/ieee80211/$phy/ath9k/chanbw
+ [ -n "$chanbw" -a -d /sys/kernel/debug/ieee80211/$phy/ath5k ] && echo "$chanbw" > /sys/kernel/debug/ieee80211/$phy/ath5k/bwmode
[ "$channel" = "auto" -o "$channel" = "0" ] || {
fixed=1