From patchwork Tue Feb 1 14:34:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajkumar Manoharan X-Patchwork-Id: 523171 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p11EZp21008005 for ; Tue, 1 Feb 2011 14:35:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757229Ab1BAOft (ORCPT ); Tue, 1 Feb 2011 09:35:49 -0500 Received: from mail.atheros.com ([12.19.149.2]:51236 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756916Ab1BAOft (ORCPT ); Tue, 1 Feb 2011 09:35:49 -0500 Received: from mail.atheros.com ([10.10.20.108]) by sidewinder.atheros.com for ; Tue, 01 Feb 2011 06:35:29 -0800 Received: from mail.atheros.com (10.12.4.12) by SC1EXHC-02.global.atheros.com (10.10.20.106) with Microsoft SMTP Server (TLS) id 8.2.213.0; Tue, 1 Feb 2011 06:35:44 -0800 Received: by mail.atheros.com (sSMTP sendmail emulation); Tue, 01 Feb 2011 20:04:58 +0530 From: Rajkumar Manoharan To: CC: , Rajkumar Manoharan Subject: [PATCH] ath9k: wakeup hw before stopping beacon queue Date: Tue, 1 Feb 2011 20:04:52 +0530 Message-ID: <1296570892-7074-2-git-send-email-rmanoharan@atheros.com> X-Mailer: git-send-email 1.7.4 In-Reply-To: <1296570892-7074-1-git-send-email-rmanoharan@atheros.com> References: <1296570892-7074-1-git-send-email-rmanoharan@atheros.com> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 01 Feb 2011 14:35:52 +0000 (UTC) diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index c9925e9..bfc70c1 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -1411,6 +1411,7 @@ static void ath9k_do_vif_add_setup(struct ieee80211_hw *hw, if (ath9k_uses_beacons(vif->type)) { int error; + ath9k_ps_wakeup(sc); ath9k_hw_stoptxdma(sc->sc_ah, sc->beacon.beaconq); /* This may fail because upper levels do not have beacons * properly configured yet. That's OK, we assume it @@ -1423,6 +1424,7 @@ static void ath9k_do_vif_add_setup(struct ieee80211_hw *hw, ath9k_reclaim_beacon(sc, vif); else ath_beacon_config(sc, vif); + ath9k_ps_restore(sc); } }