ath9k: fix setting channel bandwidth before bringing up interfaces
authorFelix Fietkau <nbd@openwrt.org>
Wed, 23 Nov 2011 13:55:14 +0000 (13:55 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 23 Nov 2011 13:55:14 +0000 (13:55 +0000)
SVN-Revision: 29295

package/mac80211/patches/513-ath9k_channelbw_debugfs.patch

index ded102e1447900ddbd21a16760b9124c63c6cafd..ef568dc2ad22106d6cd245854b13891cb9ded79f 100644 (file)
@@ -51,7 +51,7 @@
 +              return -EINVAL;
 +
 +      sc->chan_bw = chan_bw;
-+      if (!sc->ps_idle)
++      if (!(sc->sc_flags & SC_OP_INVALID))
 +              ath9k_config(sc->hw, IEEE80211_CONF_CHANGE_CHANNEL);
 +
 +      return count;