ath9k: fix operating state check on changing the channel bandwidth via debugfs
authorFelix Fietkau <nbd@openwrt.org>
Thu, 25 Oct 2012 15:13:09 +0000 (15:13 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 25 Oct 2012 15:13:09 +0000 (15:13 +0000)
Backport of r33891

SVN-Revision: 33924

package/mac80211/patches/512-ath9k_channelbw_debugfs.patch

index d4087a0b28f89771c942ec093aff51f1a3314480..88b6d29832adc041bfac1f2350c80835895d3d27 100644 (file)
@@ -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;