From b609c573555756f8a5d19f3c0b13426fc5f58528 Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 23 Nov 2011 13:55:14 +0000 Subject: ath9k: fix setting channel bandwidth before bringing up interfaces git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29295 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/mac80211/patches/513-ath9k_channelbw_debugfs.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/mac80211/patches') 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; -- cgit v1.2.3