aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-11-23 13:55:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-11-23 13:55:14 +0000
commit5fbacb2ef8f88f517b6e7be14566e348d00c1049 (patch)
treed5a16b770570657f5fdc5d14040dfbe53e20ca2f /package
parent78a3a358047a0cd2cc09e4320fda0e2d71ffdd82 (diff)
downloadupstream-5fbacb2ef8f88f517b6e7be14566e348d00c1049.tar.gz
upstream-5fbacb2ef8f88f517b6e7be14566e348d00c1049.tar.bz2
upstream-5fbacb2ef8f88f517b6e7be14566e348d00c1049.zip
ath9k: fix setting channel bandwidth before bringing up interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29295 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/513-ath9k_channelbw_debugfs.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch b/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch
index ded102e144..ef568dc2ad 100644
--- a/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch
+++ b/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch
@@ -51,7 +51,7 @@
+ return -EINVAL;
+
+ sc->chan_bw = chan_bw;
-+ if (!sc->ps_idle)
++ if (!(sc->sc_flags & SC_OP_INVALID))
+ ath9k_config(sc->hw, IEEE80211_CONF_CHANGE_CHANNEL);
+
+ return count;