Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp45380lql; Fri, 12 Apr 2024 03:17:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWRRMfCUaVfnbzpqlXB/Tme4lGm0htAJimFCyhZS5F2kBJvwOXuHyF0YQVsZ00us/MmzGTK2fJt7YjbTRA7+Tf7v2CD6k8EBzdhH330pw== X-Google-Smtp-Source: AGHT+IGQ9spngfkF+y3xitBnkCnl2i8BLZANjl71RnVSDJaWBTNOgzE7rdM7jacZsXc1dcGoebUf X-Received: by 2002:a5b:8c9:0:b0:dd9:20df:d5d with SMTP id w9-20020a5b08c9000000b00dd920df0d5dmr2011452ybq.32.1712917029538; Fri, 12 Apr 2024 03:17:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712917029; cv=pass; d=google.com; s=arc-20160816; b=ZSH8icbmcTr/cSip7u125CiFoAtU9w23cfVdGhHVKUkcCu6HvxGIuugd/+4NocfXz2 zPb7sKkB1Y0pICN/v0OwZnQBVTgug7qR7gOIBm2giNpBYa9whAXpcTRvbR2m0AaoxTFz n3BEpYes9dLidc9Mt44sGBsrBzS7tNtcyJXRH+7y/SLUC3TRYFM8SXZVZbNSJaU9bFdb SeZixreZI4ch8L/j+E/1uVUvExcpiq9QsjHGbMvoPCh+/iejALOrMWBMxdaTYGCKqCXq AzKDDLTX4UvQX2XKIDjdnpSyLiuVxTSpqH0CTZj1Cvp98zyNQ8pn7Mk0r55JNYgHF5A7 L88A== 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=wdpnUooqVUmLVJ1PAcrrISzZCkaPv9bjPL7duihbFTk=; fh=FeRHs2WX8VAc5wtea+afpOiGBDI/QNqygA2b1gY4TiI=; b=HxLmm2UbAWaHYhAyB6Zh7aeJoldiqfXPNYZCFdIEQX2v4HwR2RbkDOqHgUkNtpNBDc 1GvSG+WEgaM3p1O8y/fZtZ+yyzwk07HUayBqBre8t4l6j2Gbim+wpva8ri2ZhPzc/0cn izU2RMgJOsGMXiI5KtI2UzdYcb02PCl2rsJrNXMkHR1I3I4iuto91TsWbCpunJiEdLkz ga+J5Z2WQeMRfSFqiW2PVWrCqVeu3iUJ1rG35fUKJ2wdGS4auT5etu6CH+bSzeP1KXOW s4ZXlA7Xq4KvDeddNG9Z2J+wqaCHv/FZkyII6zuSQTRWNTbop2UuxQbLycM0+yOMglqe sXzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=aEEkjNZG; 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-6240-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6240-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bd17-20020ad45691000000b006991273becfsi3154149qvb.534.2024.04.12.03.17.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 03:17:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6240-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=aEEkjNZG; 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-6240-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6240-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 354F71C2236E for ; Fri, 12 Apr 2024 10:17:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BCD2B5339E; Fri, 12 Apr 2024 10:17:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="aEEkjNZG" 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 5B17C502B0 for ; Fri, 12 Apr 2024 10:17:04 +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=1712917025; cv=none; b=cxp6PuJaKPWlKRneGf1nGm5SQzQhlRzNce0ZyslWWXcYYA3j3M0rkAXaqiweQ28T2FQgqXlTzNHOZQ4Xfv1oVLvXBFAA+ya34Heq86iEZ/ZSvfjqFAXIhuwMSj/a5Q+N0Cu3cbsrjddbE3h/k9+N3bi+2IX0fC245nfKYqZVQlU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712917025; c=relaxed/simple; bh=iAH/FyvAyUS3SqblPoelrmASHIrmsht4wa43PQkZq5I=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=NJrHNK1GOSQ+DgpdmTIFsGLk/PcmsycgVslnNscmlLJbOB6kuDMUGKhwieUdx2Fyd93BjOYT41vI23lEYvXNPKPf7NQO3AEeQLXo92oLRMVLG8VNgFoowZnNwWTQd/Vtkq4NXzb8hNVDv4etjgsXLoGLfCecUA2CTVc8x2VFO3U= 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=aEEkjNZG; 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 (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43C1l5KO005947; Fri, 12 Apr 2024 10:17:01 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=wdpnUooqVUmLVJ1PAcrr ISzZCkaPv9bjPL7duihbFTk=; b=aEEkjNZGmD95IQmBXw6S5VGaA6xYo9Ftbg0K r0N/oerkuVTldwyDAr1s+QcSom7O/Tqf3q71wG69lcWwaF+8lUGG04gclc+ZveLU QtSfx9tv6viVgNykC0W/NE1xDz5iHcdL4jYQ49DO41nAgZjePUQTQUvwwXZjdaRh 43ZykdVgiJBKIIqMJr3aIszTBwgFmIhNg1DZAAnbTzV8yylfx5XWrBdWgnze5zJP Ujm25sm+o9xdhJ+GN7Z4pY/rPjqB48qNJi/mCB9pxr4nAyat6DTG8OOlDx2U3V3n MdkBe57Ln31txGMzGnxn9PKQFlPpEYoEaeUEB2+WSy3E/wEX7g== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xeskt153x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Apr 2024 10:17:01 +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 43CAH0jE027291 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Apr 2024 10:17:00 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; Fri, 12 Apr 2024 03:16:59 -0700 From: Lingbo Kong To: CC: , Subject: [PATCH v2 0/3] wifi: ath12k: report station mode stats Date: Fri, 12 Apr 2024 18:15:57 +0800 Message-ID: <20240412101600.55344-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: 5GrCoiRgHFUes172ssCQbEPz08QrPcbr X-Proofpoint-ORIG-GUID: 5GrCoiRgHFUes172ssCQbEPz08QrPcbr 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-12_06,2024-04-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 mlxscore=0 phishscore=0 clxscore=1015 spamscore=0 malwarescore=0 adultscore=0 mlxlogscore=892 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404120074 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 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