Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp926191lqp; Sun, 14 Apr 2024 06:11:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWmTe6NtQ0mmphTHxtv42+DpP7xsl4qD/EBKqj8o3+UbNIRTua7gpHtmCn+YMWdH0XyKEmXAOcoBf1wF3+P33qsEfFppcNZD5xYm3SCKw== X-Google-Smtp-Source: AGHT+IGloH20ZHpQiZgS03qcRcQiCBwEdrwNk0npbNa7gAm1ArNvKBEzLOW1eQQutRhdrmNIELvh X-Received: by 2002:a05:6512:48c8:b0:515:acda:77f0 with SMTP id er8-20020a05651248c800b00515acda77f0mr5715605lfb.29.1713100289795; Sun, 14 Apr 2024 06:11:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713100289; cv=pass; d=google.com; s=arc-20160816; b=fZtTniQx6ND2Ndf4o1oVmXT2X+oZg9t6HRRF0yyz/cm9wAkWZExanBcqomR0g+frx0 QeT47AgIEReg+bX9XaM44xwVAYHkoZ/2jsMzyEwsJOHAOy9odNOv11sPKSm1emBJaOul r2uz2+5p1MDPDGz+YKkudfuRMn1/zOTD/B9TrNPfgOvwfajCnBXgBTLlrH3PJzirsXI6 BzC+2LRKMF2OtOf2P4sedIyl+YhjvUf61kv0JlBAFFfIXzb423ttOto8hQtmLBz4ONBG T07hdjQUOUiol/dSWyfo5c7S9snySYMeNMk7MWw4ejqV+LGu25q/cFXGwDU51B28sNPW +TZw== 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=gJXKMKIDd87j0awDcCLa3cZSOksN7V3KJCNh3W+WrDU=; fh=FeRHs2WX8VAc5wtea+afpOiGBDI/QNqygA2b1gY4TiI=; b=o6D/7KY8XitHwcplpQ4CkbAf3JmvZ982oVlofrHSvYmbsIjXatpNHh1aBMEEnnEpfe ttZUTyYC8nGhlROOd725eet7W5MpShvQdg3N2yPP2TsTM9AFe1Jrr34+poBZJELVJAie MavpbCozCTt/5AYHavRnv4DIRthkabVy7FkYTW9pJh+9NrjdvSr0FEqyzwz/bOTJIw9j Sy/o2+LOQU/h9QzuECkpy6Qy5J122xgRKucQiMOEALDjfNbu/mBuUnEd5mMb9Qhy6XiX iRa89PMq/zQzGGHA+vES11I6LTnSl+EcBsmtTdXwE2u7mkiIwj3QJGRpeE4YML76ekT8 m3+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JjslqiiF; 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-6283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6283-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ga34-20020a1709070c2200b00a51955151eesi3658910ejc.418.2024.04.14.06.11.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 06:11:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JjslqiiF; 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-6283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6283-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 79D141F20F34 for ; Sun, 14 Apr 2024 13:11:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11B5837145; Sun, 14 Apr 2024 13:11:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="JjslqiiF" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 54DCB374D4 for ; Sun, 14 Apr 2024 13:11:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713100286; cv=none; b=pO1WUjjroZGxo/LLOEWlKbhEZjbMphPTWIMSgq0fFnjpuTRD52EvhT17upiYajExde9rZ3bTgQxSOn3/hV59G/3k01IELBXMndMLWHhhCwyc8il+DDI7rlj7QRUYIYZj+8RYuKrblUaBc32OXbnKAWQzmHj3hhkBTyQG2c9u86g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713100286; c=relaxed/simple; bh=FI7GhVng/pWscnZa0WnVJLff3DSKPM0U8GD9UG5YH9U=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=eUMFo/F6QjkHd0l6GzSytbMdnR1CxNA9m3dBetsPXP5oCJjVTpZu1H8NGyPzRA1+MZ1tLdywUxQ0917EHMfT6ruIPyM1/7wDVXCgHuQwPFoj3+rMY4x1xjk8UmsHRtbQgqYWQXMey96+HLdO5X8KVGBwzINsSd8ZIz+WK//IgG4= 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=JjslqiiF; arc=none smtp.client-ip=205.220.180.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 (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43EDB5J8017315; Sun, 14 Apr 2024 13:11:05 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=gJXKMKIDd87j0awDcCLa 3cZSOksN7V3KJCNh3W+WrDU=; b=JjslqiiF0NWbAiEQIUoWm49TB6qkt2zVZN/Z wLeW21IKqNl6HGqj6OHW6zG3Ki48gBW6Oquy1g6KYKGLqaqDNgrMPBfiCckjOUrH ovn/wFZZhb6cj/VouMDiIdIHNVOWkGyPqXbPJGHT2EkCuPfWzgQP9KfkX8GR1BUl emzSrMexnGZ0sbiF/9h13qW8MVRF2/l4l7h76EqED+UhGtk1ohJoWTI+6o43djhf /SmMhES92y5Ov1sbznhBN0qE7fyez/PGu81cLnPl9bkfvI2TuGG0+aFZCuo2NItl 4zSgJdJIxYnRw3FWLhpYELQIsdFnkod2I4nK08d/eZ9vP/l9Pw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xfhn41v48-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 14 Apr 2024 13:11:05 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43EDB1r2031010 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 14 Apr 2024 13:11:01 GMT Received: from lingbok-Birman-PHX.lan (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; Sun, 14 Apr 2024 06:11:00 -0700 From: Lingbo Kong To: CC: , Subject: [PATCH V3 0/3] wifi: ath12k: report station mode stats Date: Sun, 14 Apr 2024 21:10:05 +0800 Message-ID: <20240414131008.71519-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: nasanex01a.na.qualcomm.com (10.52.223.231) 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-ORIG-GUID: u6bl02R6mGirjmvNSrzBOEJLxkkkgaE6 X-Proofpoint-GUID: u6bl02R6mGirjmvNSrzBOEJLxkkkgaE6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-14_03,2024-04-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 suspectscore=0 lowpriorityscore=0 malwarescore=0 spamscore=0 priorityscore=1501 bulkscore=0 mlxlogscore=901 adultscore=0 mlxscore=0 clxscore=1015 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404140095 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 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 | 3 + 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(+), 9 deletions(-) base-commit: 363e7193eaf258fe7f04e8db560bd8a282a12cd9 -- 2.34.1