From patchwork Sun Jul 14 15:44:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Crispin X-Patchwork-Id: 11043247 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 57481746 for ; Sun, 14 Jul 2019 15:44:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46C0A27BA5 for ; Sun, 14 Jul 2019 15:44:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3ADC027CEA; Sun, 14 Jul 2019 15:44:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E7E7227BA5 for ; Sun, 14 Jul 2019 15:44:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=OolDfMtLW7brDvNCH23Ikhk+8X1NvMgMPGJh94YYu6s=; b=DZZNB/SfYxlevQ GmWl1g31I4qXPcK4b6Ot45Xtjji007SFmgo68Fx4Rl02l88SGJuDy6zY9S7q3opn6yl9wUDlfVAPK ho+UyZATVkddS9JFr1SzWwWLUC0K+fS/zHVL0q9Ctn7uC6P//7PHn4ZD3bwVBh93AIKymRzxUXv4F +WgbRuDxZIylUuVrtRvPQt8vIl3JbTZo2QnXe7uVLM5w6vJ4Sbnfea06G+P8lBYf0ZnRB2QnqgbWi lk2vw7m7Iye3vrrhBhf0Ff59ZVPkoLi2aNj6p4EsHCqtKcSldCceaNlvbcuDOke4BGguyuEqMrtGO 3GvFO4mlCfYO6NyUgpfA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hmgg3-0006cI-0a; Sun, 14 Jul 2019 15:44:39 +0000 Received: from nbd.name ([2a01:4f8:221:3d45::2]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hmgg0-0006bB-D0 for ath11k@lists.infradead.org; Sun, 14 Jul 2019 15:44:37 +0000 Received: from p5dcfb359.dip0.t-ipconnect.de ([93.207.179.89] helo=bertha.fritz.box) by ds12 with esmtpa (Exim 4.89) (envelope-from ) id 1hmgfv-0007cJ-KA; Sun, 14 Jul 2019 17:44:32 +0200 From: John Crispin To: Johannes Berg , Kalle Valo Subject: [PATCH 0/6] mac80211: add HE TX rate reporting to radiotap Date: Sun, 14 Jul 2019 17:44:13 +0200 Message-Id: <20190714154419.11854-1-john@phrozen.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190714_084436_602601_C2A2059B X-CRM114-Status: UNSURE ( 7.40 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, John Crispin Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Right now struct ieee80211_tx_rate cannot hold HE rates. Lets extend struct ieee80211_tx_status instead and use ieee80211_tx_status_ext() to propagate the information to the subsystem. John Crispin (6): mac80211: add xmit rate to struct ieee80211_tx_status mac80211: propagate struct ieee80211_tx_status into ieee80211_tx_monitor() mac80211: add struct ieee80211_tx_status support to ieee80211_add_tx_radiotap_header ath11k: drop tx_info from ath11k_sta ath11k: add HE rate accounting to driver ath11k: switch to using ieee80211_tx_status_ext() drivers/net/wireless/ath/ath11k/core.h | 3 +- drivers/net/wireless/ath/ath11k/debugfs_sta.c | 7 + drivers/net/wireless/ath/ath11k/dp.h | 9 + drivers/net/wireless/ath/ath11k/dp_rx.c | 82 ++++---- drivers/net/wireless/ath/ath11k/dp_tx.c | 20 +- drivers/net/wireless/ath/ath11k/hal_rx.c | 13 +- drivers/net/wireless/ath/ath11k/hal_rx.h | 30 +++ drivers/net/wireless/ath/ath11k/rx_desc.h | 8 + include/net/mac80211.h | 2 + net/mac80211/ieee80211_i.h | 3 +- net/mac80211/status.c | 180 ++++++++++++++++-- net/mac80211/tx.c | 3 +- 12 files changed, 291 insertions(+), 69 deletions(-)