From patchwork Tue Feb 12 12:39:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhishek Ambure X-Patchwork-Id: 10807835 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 BF9E617FB for ; Tue, 12 Feb 2019 12:40:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD82E2B68E for ; Tue, 12 Feb 2019 12:40:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A20D52B496; Tue, 12 Feb 2019 12:40:12 +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 535892B68E for ; Tue, 12 Feb 2019 12:40:12 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=XomGJmLG1DxsL0kM8VtlqmXNXf/nIgay9nQ4Xm57jGg=; b=d3k 35bAJ/8lyoczNXBAL1U3Y7h1viK6AbzmS8vuGj6A1RPlv6SUpqZ66k2OqhgKNDykS9pW1KLv4v72D hVjAuvT/fSLDQ3Mx1nnh5obpcqK/f6y1salloH190y7fhKGe3CzxBUvgM/QCp/81TipGWUZiUievc Rp2HicRkdZ4bKUtwUVDJZue7G4NnxLrJTEFj5Ggus903O5bMs3dOdP3ZdvWw+7Czu313rJA0rAx3f xkaNywNviy1JNYY0FEAPdUf83DNAvdlCWuoP4qGL0/M7Peo6nLEsvOM600GeIfAiRblDMHp2LFIQP WS9ohjkVP3Qy9y7wTt/K2nq/X4BFLMQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtXMA-00016f-Io; Tue, 12 Feb 2019 12:40:10 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtXM6-0000Xh-Ln for ath10k@lists.infradead.org; Tue, 12 Feb 2019 12:40:09 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C035A607DF; Tue, 12 Feb 2019 12:40:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1549975205; bh=pAxRlKmSg7ij0qnXpPjweT+xZyc7pC39lYXWICA3LQM=; h=From:To:Cc:Subject:Date:From; b=juluEFbQYH14rb4ZPL0Z3RZBR8aYiBvnLIhUjwO/OYCOOBVB+7rbGKOQn5rXyh7py svW78jmnuN30zVoO58cynzfwHzQ7dBlJncEk0DLwasTX4zTz1a18xI3s5ScWtm3dqS VV1HjGh97QcJ4Ch0L58IgctWRoajuXo5NuWBCwqY= Received: from aambure-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: aambure@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 176FB60132; Tue, 12 Feb 2019 12:40:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1549975205; bh=pAxRlKmSg7ij0qnXpPjweT+xZyc7pC39lYXWICA3LQM=; h=From:To:Cc:Subject:Date:From; b=juluEFbQYH14rb4ZPL0Z3RZBR8aYiBvnLIhUjwO/OYCOOBVB+7rbGKOQn5rXyh7py svW78jmnuN30zVoO58cynzfwHzQ7dBlJncEk0DLwasTX4zTz1a18xI3s5ScWtm3dqS VV1HjGh97QcJ4Ch0L58IgctWRoajuXo5NuWBCwqY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 176FB60132 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=aambure@codeaurora.org From: Abhishek Ambure To: ath10k@lists.infradead.org Subject: [PATCH v2 0/2] Add support for ack rssi values of all data and Date: Tue, 12 Feb 2019 18:09:49 +0530 Message-Id: <1549975191-20912-1-git-send-email-aambure@codeaurora.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190212_044006_741824_4E63BA48 X-CRM114-Status: UNSURE ( 7.89 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Abhishek Ambure , linux-wireless@vger.kernel.org MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP WCN3990 firmware supporting WMI_TLV_SERVICE_TX_DATA_MGMT_ACK_RSSI sends ack rssi value of all data and management tx packets to host through tx completion event. If WMI_RSRC_CFG_FLAG_TX_ACK_RSSI is set in host capability then firmware sends RSSI value in tx completion events of data and management packets. Host driver extracts ack rssi values of tx packets from their tx completion event. Applications gets ack rssi value of data and managent tx packets using below commands, For Data ack rssi command: - iw dev station dump O/P: - check last_ack_rssi value in output For Management ack rssi command: - hostapd_cli POLL_STA O/P: - OK hostapd_cli STA O/P: - check last_ack_rssi value in output V2: Tested firmware and Tested hardware added Abhishek Ambure (2): ath10k: Add support for ack rssi value of management tx packets ath10k: Add support for ack rssi value of data tx packets drivers/net/wireless/ath/ath10k/htt.h | 86 +++++++++++++++++++++++++++++++ drivers/net/wireless/ath/ath10k/htt_rx.c | 12 +++-- drivers/net/wireless/ath/ath10k/hw.c | 32 +++++++++++- drivers/net/wireless/ath/ath10k/hw.h | 22 ++++++++ drivers/net/wireless/ath/ath10k/wmi-tlv.c | 26 +++++++++- drivers/net/wireless/ath/ath10k/wmi-tlv.h | 25 +++++++++ drivers/net/wireless/ath/ath10k/wmi.c | 40 +++++++++----- drivers/net/wireless/ath/ath10k/wmi.h | 11 ++++ 8 files changed, 234 insertions(+), 20 deletions(-)