From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gzHN1-0003Ip-H2 for ath10k@lists.infradead.org; Thu, 28 Feb 2019 08:48:49 +0000 MIME-Version: 1.0 Subject: Re: [PATCH v2] ath10k: Fill rx duration for each peer in fw_stats for WCN3990 From: Kalle Valo In-Reply-To: <1551174796-25264-1-git-send-email-svishnoi@codeaurora.org> References: <1551174796-25264-1-git-send-email-svishnoi@codeaurora.org> Message-Id: <20190228084847.402FF60A0A@smtp.codeaurora.org> Date: Thu, 28 Feb 2019 08:48:47 +0000 (UTC) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ath10k" Errors-To: ath10k-bounces+kvalo=adurom.com@lists.infradead.org To: Surabhi Vishnoi Cc: linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Surabhi Vishnoi wrote: > Currently, rx_duration for each peer is not getting populated in > fw_stats debugfs entry for WCN3990. > > WCN3990 firmware sends rx duration for each peer as part of > peer_extd_stats in WMI_UPDATE_STATS_EVENT. To enable peer_extd_stats, > firmware expects host to send fw_stats_req_mask with flag > WMI_TLV_PEER_STATS_EXTD set in WMI_REQUEST_STATS_CMD. > > Send fw_stats_req_mask with flag WMI_TLV_PEER_STATS_EXTD set in > WMI_REQUEST_STATS_CMD and parse the peer_extd_stats in > WMI_UPDATE_STATS_EVENT to populate the rx_duration of each peer > in fw_stats debugfs entry. > > Currently the driver handles 32-bit rx_duration, but the rx_duration > for WCN3990 can be upto 63 bit. The firmware sends rx_duration split > into two 32-bit fields, with the upper 32-bits being valid only if its > MSB is set. This change handles the 63-bit rx_duration obtained from > WCN3990 and maintain the backward compatibility. > > To get the rx_duration of each connected peer : > cat /sys/kernel/debug/ieee80211/phyX/ath10k/fw_stats > > Tested HW: WCN3990 > Tested FW: WLAN.HL.3.1-00784-QCAHLSWMTPLZ-1 > > Signed-off-by: Surabhi Vishnoi > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. f40a307eb92c ath10k: Fill rx duration for each peer in fw_stats for WCN3990 -- https://patchwork.kernel.org/patch/10829811/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k