Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp384386lqt; Thu, 18 Apr 2024 20:24:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWkGUDqyVTlZJxWUxpK9C4W6gH6MCXh76ebDqNfDTcu+v6PLBJHzc/jyNN4NmMnmmPZ42eiSb1K77Hh6bo+qkUv6PQYRzDDJbeKYOUTgA== X-Google-Smtp-Source: AGHT+IFCzdV1b6xlIrCBVwLubyCVWC6qrC0NA3w30KHDSKcsUJjKd4jfS811/AQopeVgO0n19AC5 X-Received: by 2002:a50:99c3:0:b0:56c:d47:e403 with SMTP id n3-20020a5099c3000000b0056c0d47e403mr760911edb.28.1713497047753; Thu, 18 Apr 2024 20:24:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713497047; cv=pass; d=google.com; s=arc-20160816; b=jRPgbTCzEHd4u0VD+klxhs9sKTPzIt5iSN9DX/GpgQEEzeMdjov3Js0TrCaZJMXgfF Sljah5Q3Tq3Cssd8kzS+2G73MF5YPnji0FEdzUfwA1GoRyBIoYhXDRYsPT0qEAnH4GyQ hMrtm3AVmRDmPbmACZwPRsq4He+bcpuZzqJwXugSoG9Lv2CiH9T8Kq58PAGnH2Soql7D CMAgsY8zRtsZhoEKuScC46wbEKn3O4qOpM+uMEoOiWTatUJO/V3lVi1ZUdWueB0iWslx 4vW64WR7tU7ChdbZAOt21/O0Dp7AAnb7hiQTz1L/taAJp8GXmYSRkF1+mGQwHO3DdOf2 4ltg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=XZy3Zl9onT1VetRVYHL2h1ohQiSRXEfHyp5j9SyTuH0=; fh=FeRHs2WX8VAc5wtea+afpOiGBDI/QNqygA2b1gY4TiI=; b=rG3jQoFjjZXKL+ZeWqYQqm7iaWyStsDVD7Ga88dpgexHvFAbx/g+KLQPAvsQDTQ+Bs UlxYs8INr3pPq7B+jciT8CnoVp7YY3MVO1PSxmIrVEPbP7RS6OsqRAqMIiJn3rZwOT6X AI7cEpkHp5f7ycV/9eSh7JvJN+X7m07N6Vu2cKj56n/AG5i75ozQQ8n7cRU8hFxPOyu0 VJZnyE+280VPswD2j4KPfAK3s1BYuegk33NS9SJGngF/e3kQ5EbLP2rC2jsFqpyyXzHS RSa6TnYXGw2r3FWZ+uwQFA5kqzIqEfLiUbUn2y6Z14u0J8RcVKkK0px38osD3rGb9hYf O0aA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=RKVSdQJV; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-6549-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6549-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r24-20020aa7d158000000b0056e30d14ad7si1582008edo.266.2024.04.18.20.24.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 20:24:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6549-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=RKVSdQJV; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-6549-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6549-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4C8841F21F6E for ; Fri, 19 Apr 2024 03:24:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E2A4748E; Fri, 19 Apr 2024 03:24:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="RKVSdQJV" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 C8DD15664 for ; Fri, 19 Apr 2024 03:24:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713497044; cv=none; b=KLBSyxhEDQr16fxbvLlu9ASqzRRWUVClmLO25rMFeUv4w1HueApXKrPI8e1QtFT76AAZmKdUyobEDa+WLMBkoVrnWOaXMwMJfZmAdd1/XnJf48W7COlSf3i9mQg66VLWdb4vjSn1I+FRMXDG/jH2XQGdIwdBwgdFGA9gNDGoDDQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713497044; c=relaxed/simple; bh=NwoACKSXu3b9J7yWcpcRbBMYP7BxEJTZMRXm1+avNoI=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=qiEELklaEFjEaSh7WQD1SqtOHdXpWRh922D+va87dQUlXEiSDc95STr0yOml4PDiMEHT50AwBSZ7cGIQT/x/zgvCSIaeHX1k0lKKZFD+en1BWbqAr8kg11KoGjnj+MWJelLRmGipM5tdwDC1M+woIJDER9cQ28dDkz1q3NqpmEQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=RKVSdQJV; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43J10fkQ026490; Fri, 19 Apr 2024 03:23:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=qcppdkim1; bh=XZy3Zl9onT1VetRVYHL2 h1ohQiSRXEfHyp5j9SyTuH0=; b=RKVSdQJVqZdL9W4vaN1gLOhKYFDgnemftjnb Z3eCuQnjWQjnzAbuZwlyuSTwkS5MNcMUMfGjThOoH+IHwHyD2Swx/iTc1H6cOA7Y RwJKkdtjskFIyUiQd+OA0HEcAjiRORR5XESqCvoY3EWGULHb+4yDuJ2QDeNw1ETL q6c+L1aEMLcFjGkunBkPI2Nt1PSePOu0fJomPapt6q0axXsYOMNOISFBsy/q1WAY wnruatwbmX34+u8ztKw+BJ0zBb4Wr6rfiQRoDQKkJGjjD6KNHTpIKGYK4yBp6Pio HY/HMScMJ0+h7LjFwlEw6ACuGaqH/DEj2oMzRbI9VXd9H1z2KQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xk3tx9rhh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Apr 2024 03:23:58 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43J3NvsY006761 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Apr 2024 03:23:57 GMT Received: from lingbok-Birman-PHX.qca.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 18 Apr 2024 20:23:55 -0700 From: Lingbo Kong To: CC: , Subject: [PATCH v4 0/3] wifi: ath12k: report station mode stats Date: Fri, 19 Apr 2024 11:21:19 +0800 Message-ID: <20240419032122.7009-1-quic_lingbok@quicinc.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: iMdvmfb-K1N5jtYgSE5EnyZ7t4katUvZ X-Proofpoint-ORIG-GUID: iMdvmfb-K1N5jtYgSE5EnyZ7t4katUvZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-18_22,2024-04-17_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 mlxlogscore=822 priorityscore=1501 mlxscore=0 clxscore=1015 spamscore=0 adultscore=0 phishscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404190024 Currently, the transmit rate, the receive rate and signal strength of “iw dev xxx station dump” always show an invalid value. This is because ath12k has no logic to handle this relevant information. To solve this issue, ath12k parses the information passed by the firmware and passes it to mac80211. After that, "iw dev xxx station dump" show the correct value. Such as: Station 00:03:7f:12:03:03 (on wlo1) inactive time: 600 ms rx bytes: 4642228 rx packets: 23796 tx bytes: 933967 tx packets: 8761 tx retries: 66 tx failed: 0 beacon loss: 0 beacon rx: 8925 rx drop misc: 191 signal: -20 dBm beacon signal avg: -18 dBm tx bitrate: 1441.1 MBit/s 80MHz EHT-MCS 13 EHT-NSS 2 EHT-GI 0 tx duration: 0 us rx bitrate: 1801.4 MBit/s 80MHz EHT-MCS 11 EHT-NSS 3 EHT-GI 0 rx duration: 0 us v4: 1.rebase ath-pending-202404181533 2.change ATH12K_EHT_MCS_MAX from 13 to 15 v3: 1.change wmi_vdev_stats_event to wmi_vdev_stats_params v2: 1.change copyright 2.change name according Naming conventions for structures Lingbo Kong (3): wifi: ath12k: report station mode transmit rate wifi: ath12k: report station mode receive rate for IEEE 802.11be wifi: ath12k: report station mode signal strength drivers/net/wireless/ath/ath12k/core.h | 5 + drivers/net/wireless/ath/ath12k/dp_rx.c | 20 ++- drivers/net/wireless/ath/ath12k/dp_rx.h | 3 + drivers/net/wireless/ath/ath12k/dp_tx.c | 147 +++++++++++++++++- drivers/net/wireless/ath/ath12k/hal_tx.h | 9 +- drivers/net/wireless/ath/ath12k/mac.c | 180 +++++++++++++++++++++- drivers/net/wireless/ath/ath12k/mac.h | 4 +- drivers/net/wireless/ath/ath12k/rx_desc.h | 2 + drivers/net/wireless/ath/ath12k/wmi.c | 130 ++++++++++++++++ drivers/net/wireless/ath/ath12k/wmi.h | 48 ++++++ 10 files changed, 538 insertions(+), 10 deletions(-) base-commit: f5f3a3166c64d469150958a470f4a3ab99d45268 -- 2.34.1