Return-path: Received: from wolverine02.qualcomm.com ([199.106.114.251]:59296 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753709Ab2FHRiG (ORCPT ); Fri, 8 Jun 2012 13:38:06 -0400 From: Rajkumar Manoharan To: CC: , Rajkumar Manoharan Subject: [PATCH 2/9] ath9k: restore power state on set channel failure Date: Fri, 8 Jun 2012 23:09:01 +0530 Message-ID: <1339177148-21672-2-git-send-email-rmanohar@qca.qualcomm.com> (sfid-20120608_193812_304091_D3A90F3A) In-Reply-To: <1339177148-21672-1-git-send-email-rmanohar@qca.qualcomm.com> References: <1339177148-21672-1-git-send-email-rmanohar@qca.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org List-ID: Not doing so, could cause imbalance in powersave count. Signed-off-by: Rajkumar Manoharan --- drivers/net/wireless/ath/ath9k/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index c0f478b..e655f2a 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -1258,6 +1258,7 @@ static int ath9k_config(struct ieee80211_hw *hw, u32 changed) if (ath_set_channel(sc, hw, &sc->sc_ah->channels[pos]) < 0) { ath_err(common, "Unable to set channel\n"); mutex_unlock(&sc->mutex); + ath9k_ps_restore(sc); return -EINVAL; } -- 1.7.10.3