From patchwork Wed Apr 2 04:03:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chun-Yeow Yeoh X-Patchwork-Id: 3926591 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EFD3DBF540 for ; Wed, 2 Apr 2014 04:03:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5FB922024D for ; Wed, 2 Apr 2014 04:03:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6A59320240 for ; Wed, 2 Apr 2014 04:03:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753620AbaDBEDq (ORCPT ); Wed, 2 Apr 2014 00:03:46 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:65050 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751677AbaDBEDq (ORCPT ); Wed, 2 Apr 2014 00:03:46 -0400 Received: by mail-pd0-f169.google.com with SMTP id fp1so10574096pdb.0 for ; Tue, 01 Apr 2014 21:03:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=1LgfTF64TAoNQdCktYBwdCphSnx6OhsHOr1wRvGifQo=; b=zKaIyaUXv5OINopNOcPr0mtCbsTe3VUWNhdSZ8XzI9YQckKo11P1QW40KjmSXfNoI5 +hDzjoMYSenjPZNSGYYEo3sZNvIlE7CTa+0L48rIDdZhSiL1qm0ZI8TPjB315xorEGaa /JsTAtF4Rz9ZTuTLNL3PUvMFqwoQ6xPssapr5Wiq7b4RDKFu0Doaq/RhTSfxe7xSpXdP cumbO66qYjHpYExLjlStdhPU02/nc48IuiwCIMa/QEvRJULeW7B8To0dwzH/7vSkxTm9 mKK+4U2uz0uHL+6/2IO2F1YYN1MJX8H+hkV4jMWoaq0wGPHTJyzwFvfsoUvmf2S3UyuD s+kQ== X-Received: by 10.69.8.225 with SMTP id dn1mr7491795pbd.46.1396411425687; Tue, 01 Apr 2014 21:03:45 -0700 (PDT) Received: from localhost.localdomain ([58.26.233.145]) by mx.google.com with ESMTPSA id xk3sm1175919pbb.65.2014.04.01.21.03.43 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Apr 2014 21:03:45 -0700 (PDT) From: Chun-Yeow Yeoh To: linux-wireless@vger.kernel.org Cc: linville@tuxdriver.com, Chun-Yeow Yeoh Subject: [PATCH] ath9k_htc: set IEEE80211_TX_STAT_AMPDU for acked aggregated frames Date: Wed, 2 Apr 2014 12:03:18 +0800 Message-Id: <1396411398-4525-1-git-send-email-yeohchunyeow@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Frame aggregation requires the IEEE80211_TX_STAT_AMPDU to be set so that mac80211 can report the last_tx_rate correctly. Signed-off-by: Chun-Yeow Yeoh --- drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c index e8149e3..289f3d8 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c @@ -471,8 +471,11 @@ static void ath9k_htc_tx_process(struct ath9k_htc_priv *priv, if (!txok || !vif || !txs) goto send_mac80211; - if (txs->ts_flags & ATH9K_HTC_TXSTAT_ACK) + if (txs->ts_flags & ATH9K_HTC_TXSTAT_ACK) { tx_info->flags |= IEEE80211_TX_STAT_ACK; + if (tx_info->flags & IEEE80211_TX_CTL_AMPDU) + tx_info->flags |= IEEE80211_TX_STAT_AMPDU; + } if (txs->ts_flags & ATH9K_HTC_TXSTAT_FILT) tx_info->flags |= IEEE80211_TX_STAT_TX_FILTERED;