From patchwork Tue Oct 5 04:27:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruno Randolf X-Patchwork-Id: 231091 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 o954RM69022784 for ; Tue, 5 Oct 2010 04:27:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751567Ab0JEE1T (ORCPT ); Tue, 5 Oct 2010 00:27:19 -0400 Received: from mail30s.wh2.ocn.ne.jp ([125.206.180.198]:39532 "HELO mail30s.wh2.ocn.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750760Ab0JEE1S (ORCPT ); Tue, 5 Oct 2010 00:27:18 -0400 Received: from vs3006.wh2.ocn.ne.jp (125.206.180.169) by mail30s.wh2.ocn.ne.jp (RS ver 1.0.95vs) with SMTP id 4-043882836 for ; Tue, 5 Oct 2010 13:27:17 +0900 (JST) Received: (qmail 43897 invoked from network); 5 Oct 2010 04:27:16 -0000 Received: from unknown (HELO ?192.168.3.123?) (220.110.201.18) by with SMTP; 5 Oct 2010 04:27:16 -0000 Subject: [PATCH] ath5k: Don't wake internal queues To: linville@tuxdriver.com From: Bruno Randolf Cc: greearb@candelatech.com, ath5k-devel@venema.h4ckr.net, linux-wireless@vger.kernel.org Date: Tue, 05 Oct 2010 13:27:17 +0900 Message-ID: <20101005042717.9652.86752.stgit@tt-desk> User-Agent: StGit/0.15 MIME-Version: 1.0 X-SF-Loop: 1 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.3 (demeter1.kernel.org [140.211.167.41]); Tue, 05 Oct 2010 04:27:23 +0000 (UTC) diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index 94cc335..c158f2e 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c @@ -1642,7 +1642,7 @@ ath5k_tx_processq(struct ath5k_softc *sc, struct ath5k_txq *txq) } } spin_unlock(&txq->lock); - if (txq->txq_len < ATH5K_TXQ_LEN_LOW) + if (txq->txq_len < ATH5K_TXQ_LEN_LOW && txq->qnum < 4) ieee80211_wake_queue(sc->hw, txq->qnum); }