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: 10809623 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 802C51390 for ; Wed, 13 Feb 2019 11:04:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A8A82A07F for ; Wed, 13 Feb 2019 11:04:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 58DD72A400; Wed, 13 Feb 2019 11:04:09 +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.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 46AAF2A07F for ; Wed, 13 Feb 2019 11:04:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729210AbfBMLEH (ORCPT ); Wed, 13 Feb 2019 06:04:07 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:50344 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727894AbfBMLEH (ORCPT ); Wed, 13 Feb 2019 06:04:07 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 3D5CA608A5; 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 Cc: linux-wireless@vger.kernel.org, Abhishek Ambure 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 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 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(-)