diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-10-25 15:13:09 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-10-25 15:13:09 +0000 |
commit | 0c18ae5f6d2fb557a8839e94892ef10580659bbc (patch) | |
tree | 7126ca0565b3382122a865c2772cf52862fccab5 /package/mac80211 | |
parent | 17cd1bc6aa2b5dd458361d3f06a89fc4e6705f12 (diff) | |
download | upstream-0c18ae5f6d2fb557a8839e94892ef10580659bbc.tar.gz upstream-0c18ae5f6d2fb557a8839e94892ef10580659bbc.tar.bz2 upstream-0c18ae5f6d2fb557a8839e94892ef10580659bbc.zip |
ath9k: fix operating state check on changing the channel bandwidth via debugfs
Backport of r33891
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33924 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211')
-rw-r--r-- | package/mac80211/patches/512-ath9k_channelbw_debugfs.patch | 2 |
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 d4087a0b28..88b6d29832 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; |