summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-10-22 16:23:23 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-10-22 16:23:23 +0000
commit3cf25176a4e942891eb94f245b7d4e35f305195b (patch)
tree8170d17b87fce2aeddae8b4bda9ee703eb6b6979
parent95e642632aec8975b2a146a13fed82bac9b67817 (diff)
downloadmtk-20170518-3cf25176a4e942891eb94f245b7d4e35f305195b.zip
mtk-20170518-3cf25176a4e942891eb94f245b7d4e35f305195b.tar.gz
mtk-20170518-3cf25176a4e942891eb94f245b7d4e35f305195b.tar.bz2
ath9k: fix operating state check on changing the channel bandwidth via debugfs
SVN-Revision: 33891
-rw-r--r--package/mac80211/patches/512-ath9k_channelbw_debugfs.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/mac80211/patches/512-ath9k_channelbw_debugfs.patch b/package/mac80211/patches/512-ath9k_channelbw_debugfs.patch
index d4087a0..88b6d29 100644
--- a/package/mac80211/patches/512-ath9k_channelbw_debugfs.patch
+++ b/package/mac80211/patches/512-ath9k_channelbw_debugfs.patch
@@ -51,7 +51,7 @@
+ return -EINVAL;
+
+ sc->chan_bw = chan_bw;
-+ if (!(sc->sc_flags & SC_OP_INVALID))
++ if (!test_bit(SC_OP_INVALID, &sc->sc_flags))
+ ath9k_config(sc->hw, IEEE80211_CONF_CHANGE_CHANNEL);
+
+ return count;