ath9k: fix operating state check on changing the channel bandwidth via debugfs
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 22 Oct 2012 16:23:23 +0000 (16:23 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 22 Oct 2012 16:23:23 +0000 (16:23 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33891 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/mac80211/patches/512-ath9k_channelbw_debugfs.patch

index d4087a0..88b6d29 100644 (file)
@@ -51,7 +51,7 @@
 +              return -EINVAL;
 +
 +      sc->chan_bw = chan_bw;
 +              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;
 +              ath9k_config(sc->hw, IEEE80211_CONF_CHANGE_CHANNEL);
 +
 +      return count;