From: nbd Date: Wed, 23 Nov 2011 13:55:14 +0000 (+0000) Subject: ath9k: fix setting channel bandwidth before bringing up interfaces X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/b609c573555756f8a5d19f3c0b13426fc5f58528?ds=sidebyside ath9k: fix setting channel bandwidth before bringing up interfaces git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29295 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch b/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch index ded102e14..ef568dc2a 100644 --- a/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch +++ b/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch @@ -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;