From patchwork Wed Feb 13 11:03:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhishek Ambure X-Patchwork-Id: 10809629 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 0CADA922 for ; Wed, 13 Feb 2019 11:04:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC32529D2C for ; Wed, 13 Feb 2019 11:04:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFCAD2A5AD; Wed, 13 Feb 2019 11:04:15 +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 5AF2529D2C for ; Wed, 13 Feb 2019 11:04:15 +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=OL+5IeLeWmRcHLzGikgWhaPuxIh1t9bQkO6KOtNOxHo=; b=IAK qxR+RJ3aVsumnVgdatig+mrzKrc9fDwOeGwN6tyHOMIfLKgY+8/gmAxb/5IP4e6xpChilZiaHzb+v 7mRd7iGmnKG5j1VrEZnoc2SQjVw+laphQ2WF/sfliBjxo4qCzFZgntH0vQsSZvnyhK8MX+/QQL+4F ff9xUhrSLnLREBO4TAjk+7KB9cP3l/th4HRy96qiIs90WdI4Uv0lSaS0S7aNNVFt2S6zUmnYO/P2C AxyxfqpwF34ATbh4vDCre1bFmaakydYLVmpkwJXAlYbMF4dSyHF/Kf0FW0YAc0//5qreZwPrKy1gx 2NY3wNlzPGB3CbS/osEPe6MYFNRs0Uw==; 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 1gtsKq-0001yb-68; Wed, 13 Feb 2019 11:04:12 +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 1gtsKm-0001xD-25 for ath10k@lists.infradead.org; Wed, 13 Feb 2019 11:04:10 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6CFE9608CB; Wed, 13 Feb 2019 11:04:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1550055846; bh=wuL7eg+utkCJZNDIRf9TFvmUgCzmdzoOIq2kQXUqmtY=; h=From:To:Cc:Subject:Date:From; b=StP8Olht7JsfoZ760thtI9EjGwYqSJYpvRWzHHhQeJQZjRke944RzUj6iqdAA48ei rqPxrOMtknUoY/JxctMIXudKUUIDcB3yqS2Qybapmngt4C4OFhtYoWQpIwGTJw5NHK Ij+NkicwpKFdYcQYcUNCcx6muF+ccZa5l8/F03O8= 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 72C68605FC; Wed, 13 Feb 2019 11:04:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1550055845; bh=wuL7eg+utkCJZNDIRf9TFvmUgCzmdzoOIq2kQXUqmtY=; h=From:To:Cc:Subject:Date:From; b=h7rASYqBldHGRCVRNMVrLS/qdLjZkL/8JZkHobg9wmww2S78248pLFrxvWCziRDch uSXNftXLwqo31FrMFDVw7UNExtCnkkTh5qPXlLtI5hpJRNdVLppyIHN0TkIetp/YnK AYcxGqiS7c6X31rX3s1LQFUVUsm5IzA9DnoT437g= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 72C68605FC 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 v3 0/2] Add support for ack rssi values of all data and Date: Wed, 13 Feb 2019 16:33:57 +0530 Message-Id: <1550055839-24454-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-20190213_030409_448405_93670C50 X-CRM114-Status: UNSURE ( 8.00 ) 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 V3: Host capability WMI_RSRC_CFG_FLAG_TX_ACK_RSSI appended in 1/2 patch Merge conflicts resolved in htt_rx.c for 2/2 patch 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 | 25 ++++++++- drivers/net/wireless/ath/ath10k/wmi-tlv.h | 25 +++++++++ drivers/net/wireless/ath/ath10k/wmi.c | 42 ++++++++++----- drivers/net/wireless/ath/ath10k/wmi.h | 11 ++++ 8 files changed, 236 insertions(+), 19 deletions(-)