From patchwork Wed Apr 26 15:11:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Fietkau X-Patchwork-Id: 9701521 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5CAD7603F7 for ; Wed, 26 Apr 2017 15:22:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FF1F283BA for ; Wed, 26 Apr 2017 15:22:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 446F22849F; Wed, 26 Apr 2017 15:22:38 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F2842843B for ; Wed, 26 Apr 2017 15:22:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751474AbdDZPWG (ORCPT ); Wed, 26 Apr 2017 11:22:06 -0400 Received: from nbd.name ([46.4.11.11]:53799 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1437749AbdDZPLi (ORCPT ); Wed, 26 Apr 2017 11:11:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=y6rIFfbj9EximXzsqjmexFr8d3TQhjCmgfN/ZrbPDfM=; b=gfX7J3LYIlO/xHjyADfanoJub3Rm5mrJTiN3p6VOzEFv7GfB8CD4Gy0qzlKkbBSHtzXA3LIv/v7dzrSaSXnrcvv1PxdF9soFMsbbGIWTdqxMByo8soMvTR88UTih3BGTFKdlVexMr4t3UKb+U7jVL+7M8gf9HRHV/C0hccFaJsg=; Received: by nf-4.local (Postfix, from userid 501) id E28C51A0776EF; Wed, 26 Apr 2017 17:11:39 +0200 (CEST) From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net, thomas@net.t-labs.tu-berlin.de Subject: [PATCH 5/5] mac80211: add txpower to the new tx_status_ext Date: Wed, 26 Apr 2017 17:11:39 +0200 Message-Id: <20170426151139.87304-5-nbd@nbd.name> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170426151139.87304-1-nbd@nbd.name> References: <20170426151139.87304-1-nbd@nbd.name> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thomas Huehn To use the per rate information about which txpower level was used for a successful or unsuccessful transmission, this new tx power per multi-rate retry rate annotation in the tx status path is needed. Signed-off-by: Thomas Huehn --- include/net/mac80211.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/net/mac80211.h b/include/net/mac80211.h index d29702601333..bd28c81bc515 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -959,11 +959,13 @@ struct ieee80211_tx_info { * @sta: Station that the packet was transmitted for * @info: Basic tx status information * @skb: Packet skb (can be NULL if not provided by the driver) + * @txpower: Txpower per rate status information */ struct ieee80211_tx_status { struct ieee80211_sta *sta; struct ieee80211_tx_info *info; struct sk_buff *skb; + s8 txpower[IEEE80211_TX_MAX_RATES]; }; /**