From: Felix Fietkau Date: Wed, 23 Nov 2011 13:55:14 +0000 (+0000) Subject: ath9k: fix setting channel bandwidth before bringing up interfaces X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=94fff444f9ed0365f1e307f3db75543ade3810d7 ath9k: fix setting channel bandwidth before bringing up interfaces SVN-Revision: 29295 --- diff --git a/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch b/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch index ded102e144..ef568dc2ad 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;