From aeb04e830e4c8406e03fd4eb95bb49a059c2840a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 25 Oct 2012 15:13:09 +0000 Subject: [PATCH] ath9k: fix operating state check on changing the channel bandwidth via debugfs Backport of r33891 SVN-Revision: 33924 --- package/mac80211/patches/512-ath9k_channelbw_debugfs.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/mac80211/patches/512-ath9k_channelbw_debugfs.patch b/package/mac80211/patches/512-ath9k_channelbw_debugfs.patch index d4087a0b28..88b6d29832 100644 --- a/package/mac80211/patches/512-ath9k_channelbw_debugfs.patch +++ b/package/mac80211/patches/512-ath9k_channelbw_debugfs.patch @@ -51,7 +51,7 @@ + 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; -- 2.30.2