From patchwork Mon Jul 26 17:10:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Bj=C3=83=C2=B6rn_Smedman?= X-Patchwork-Id: 114318 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6QHAxe2029247 for ; Mon, 26 Jul 2010 17:10:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754286Ab0GZRK6 (ORCPT ); Mon, 26 Jul 2010 13:10:58 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:45528 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753679Ab0GZRK5 convert rfc822-to-8bit (ORCPT ); Mon, 26 Jul 2010 13:10:57 -0400 Received: by eya25 with SMTP id 25so520898eya.19 for ; Mon, 26 Jul 2010 10:10:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.27.143 with SMTP id i15mr3279510ebc.38.1280164256034; Mon, 26 Jul 2010 10:10:56 -0700 (PDT) Received: by 10.14.29.9 with HTTP; Mon, 26 Jul 2010 10:10:55 -0700 (PDT) Date: Mon, 26 Jul 2010 19:10:55 +0200 Message-ID: Subject: [RFC] ath9k: improve aggregation throughput by using only first rate From: =?ISO-8859-1?Q?Bj=F6rn_Smedman?= To: ath9k-devel@venema.h4ckr.net, linux-wireless 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 (demeter.kernel.org [140.211.167.41]); Mon, 26 Jul 2010 17:10:59 +0000 (UTC) diff -urpN a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c --- a/drivers/net/wireless/ath/ath9k/xmit.c 2010-07-26 15:35:17.000000000 +0200 +++ b/drivers/net/wireless/ath/ath9k/xmit.c 2010-07-26 17:11:33.000000000 +0200 @@ -565,7 +565,7 @@ static u32 ath_lookup_rate(struct ath_so */ max_4ms_framelen = ATH_AMPDU_LIMIT_MAX; - for (i = 0; i < 4; i++) { + for (i = 0; i < 1; i++) { if (rates[i].count) { int modeidx; if (!(rates[i].flags & IEEE80211_TX_RC_MCS)) { @@ -1553,6 +1553,9 @@ static void ath_buf_set_rate(struct ath_ if (sc->sc_flags & SC_OP_PREAMBLE_SHORT) ctsrate |= rate->hw_value_short; + if (bf_isaggr(bf)) + rates[1].count = rates[2].count = rates[3].count = 0; + for (i = 0; i < 4; i++) { bool is_40, is_sgi, is_sp; int phy;