From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F6CF1FB3; Tue, 27 May 2025 17:45:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748367933; cv=none; b=CoE5UtUFkpGIKHDHu52XvvDYKfjlW2n03CU5MoTfQPpotMA+ZC5zd7sAtrHB0PhMoBXSFJVA6ZPzHTkbCstv0uvuXL+xokPq3iT8CooQWkjZFpi1LnzE00z670pSCj3o04RBdTCrR+xJkVn5rg0DvsOTqJM51tkq6CZ+l8qclBI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748367933; c=relaxed/simple; bh=k3tfzRMvVEcLzdSk+kbOgHEMBS56JbVGpZMc0u09NAg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ckfiM0UxMYSJ2f6yx+yXNSRt6ugxS4GhueF2IhodtZuS7/tFswh40k8OTzaESz0HjzksjcHHaCfaZABQLwnzq0wxHkLn3uuTAMkXvIgeZarUBYf/NEedZXlHt3xYRg5Q/yX5qT8Cfqdap56mblEcpMu7IH0nDypk2frMG3HXRxY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Y7tHjz22; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Y7tHjz22" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BD5FC4CEE9; Tue, 27 May 2025 17:45:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748367933; bh=k3tfzRMvVEcLzdSk+kbOgHEMBS56JbVGpZMc0u09NAg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y7tHjz22VVHzAyoVi4yquAmjyymDTWri+EEieq0NPHVu1ViwfnhQr4gsgTEVQY4m3 0QUZw1oC4UvKxqcz8JqymuhV3ZLKnK73kNf3nwYDSuY05v9b6gP+G4Vg1QAZOTQ7TN wuxXF3igllKB8GZj0b9OLofgwivlT6cUL1GOcE+c= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, P Praneesh , Vasanthakumar Thiagarajan , Karthikeyan Periyasamy , Jeff Johnson , Sasha Levin Subject: [PATCH 6.14 516/783] wifi: ath12k: Update the peer id in PPDU end user stats TLV Date: Tue, 27 May 2025 18:25:13 +0200 Message-ID: <20250527162534.157320325@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250527162513.035720581@linuxfoundation.org> References: <20250527162513.035720581@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Karthikeyan Periyasamy [ Upstream commit 0cded0e413468183a3b2dd445ab3bdc4d4375967 ] Currently, peer id get reported in the PPDU end user TLV tag. But the monitor status handler is inherited from ath11k, but it was not updated to incorporate the changes made to ath12k 802.11be hardware architecture. Therefore, update the peer id from the PPDU end user TLV data to get latest peer id update, it helps to populate accurate peer information on the statistics data. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1 Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 Co-developed-by: P Praneesh Signed-off-by: P Praneesh Reviewed-by: Vasanthakumar Thiagarajan Signed-off-by: Karthikeyan Periyasamy Link: https://patch.msgid.link/20250206013854.174765-6-quic_periyasa@quicinc.com Signed-off-by: Jeff Johnson Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath12k/dp_mon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/ath/ath12k/dp_mon.c b/drivers/net/wireless/ath/ath12k/dp_mon.c index f23fee7055abc..8737dc8fea354 100644 --- a/drivers/net/wireless/ath/ath12k/dp_mon.c +++ b/drivers/net/wireless/ath/ath12k/dp_mon.c @@ -638,6 +638,9 @@ ath12k_dp_mon_rx_parse_status_tlv(struct ath12k_base *ab, ppdu_info->num_mpdu_fcs_err = u32_get_bits(info[0], HAL_RX_PPDU_END_USER_STATS_INFO0_MPDU_CNT_FCS_ERR); + ppdu_info->peer_id = + u32_get_bits(info[0], HAL_RX_PPDU_END_USER_STATS_INFO0_PEER_ID); + switch (ppdu_info->preamble_type) { case HAL_RX_PREAMBLE_11N: ppdu_info->ht_flags = 1; -- 2.39.5