From: nbd Date: Thu, 25 Oct 2012 15:13:09 +0000 (+0000) Subject: ath9k: fix operating state check on changing the channel bandwidth via debugfs X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=8b126d3edb9ce937ab8ce8f5514c72d730fdea48;p=12.09%2Fopenwrt.git 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 --- 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;