Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1804079lqp; Mon, 15 Apr 2024 19:33:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVbETaPPb0J4zH02ugHOxiRAvKRmPE0svV8OXiawBAwjY6qlIag4vwABOfrl9sP+gI728NeU4kWMSHdNNuxLj4ceIlkKOndLyH1KXlLKA== X-Google-Smtp-Source: AGHT+IEmb4ca9XPbcrF2d4JBYs6OKSfavvxbDUDhzGCHJptR3OpXqKjGzx63B13TL6vRv9Ky4BtF X-Received: by 2002:a17:907:7e87:b0:a51:adac:d6e0 with SMTP id qb7-20020a1709077e8700b00a51adacd6e0mr9402736ejc.62.1713234781467; Mon, 15 Apr 2024 19:33:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713234781; cv=pass; d=google.com; s=arc-20160816; b=xQ0SVb2sh59nt2AjlzLcv6414IfO3x75Pdc8f8BZ0MNeCA3KeQzoYnY/0zdV0ElLbZ uQt30z3GP59NimGdMfqePC1b/FlV6OcJThylzGc7JF3ptp0sjaemtEf7rcuf4o1sRcnY pDBEq0RoBKbpogHJZTzxtKAViGggf4aq6tPz0SL6vVPXO/vtkrI5L/BQn1aK160JPhK4 WbWYeFjmoEfpf2Nx5UC6MGgJvOvdSd6VhiMADMjwoRm7yCwTz3vrfMWru69wcVB4zy3B D18dq7XotI7F+SY2l53t3OCeFyE3QmFb3JVf5RsmRNR82Z9akwqA7DP6gH4XaRVAQ8CA BHRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=JfxBhNcHTp6rosHCfxl1lr6W6uZBHS1zFih12ed4yso=; fh=T27QnONB81A+Cjn+MTd5LSsVmiM+pe1FYthz2KpViJo=; b=Sq2VISEYuSDyj2pPk0h0V9LdtDlkVSie86/O0m/wg6/rehztmDINqHybSIth+TWSpu ecRqgNHqK+Vv3R10kAzqc/TALLoWjV89KgN0wqgUsU/ff5zSgW+BqFV6BU3VpSDXK8Ga FsW//rA0dr623I8LBI81Kn9GMbyEr8U7BVMISYRDSlAUwxbaEAiRUesOb1Qd4hBHhcrC hWowXneC33gL/nSm1Hu2yzkLmu26ri9J2mZK7RE626OcSgm1qv6MOfA0q1Un/nclXKCK cbD3PKTv8xJ77qTbiR9ui8RMJO0syvyZUe4UDcnD5C+qONKHv1d8nICJ1cJUJ50FP7QX UGxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=osEy2wog; 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-6358-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6358-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 qw7-20020a1709066a0700b00a51f7de1911si5293095ejc.522.2024.04.15.19.33.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 19:33:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6358-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=osEy2wog; 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-6358-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6358-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 2978F1F21D6A for ; Tue, 16 Apr 2024 02:33:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 957D0A38; Tue, 16 Apr 2024 02:32:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="osEy2wog" 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 CB4F2A34 for ; Tue, 16 Apr 2024 02:32:54 +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=1713234776; cv=none; b=tYcDQaYOIv+vlKsI5Rry+5N66SS/wXs0/ZXAfUKjAIjtqKrI4DTTMzFkGwOI0IBF6/oggB2L7c/INQb6o8ecitD55Q9qhsbNBlGyhxgrgea/3teSQL5Aei5JjmYwOIbm3tJAPvIKRoujG/JuF4N/f7hRfo4sA3gio0jVBw9f13Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713234776; c=relaxed/simple; bh=7AHkriU1CVNP4ETpEP/VxQCsyjWfLtijP4+QkxHCkvE=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=R3YV2SpavWDKuBTAkkGkddKZwTIbpVCqiTNlgt1Tiu/p/lPA74A5J6NZbkn1m6dvwoq5farvBgKHiZwmAdQkRVAoDzCoIf9fiYlD3SjatZOJZRJ1tx1lWTPJX22j3svLpn/H6HqtYoON5PX2LoWEEpV/rsTuCJPHqiGxswf8Yrs= 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=osEy2wog; 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 43FNlXlc011240; Tue, 16 Apr 2024 02:32:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=JfxBhNcHTp6rosHCfxl1lr6W6uZBHS1zFih12ed4yso=; b=os Ey2wogRQuP4rAaBju+KbijsxMPbChBuqyGCrgRXJ9RUvCUFovRG4Ms9hGJ9kO1Qs wyUwAw7V4lwtwEOUUOPxHyalwbucKzzDO93bXv9spITXgbQ+KU9/uIgIDIMqzSYv NDG+eLewf5SqV+Te2o5FzOn+5RRxuq2Aau4ieAXy//1/q8jyG92/yjb315obuU1Q BCtQsnTP7vInXdKTE9uohDAyF8iiVMoIQkrB1gPCUt94oehtPTzI5dNFFkZ/rVcR 9i6p9RqjikpM8RD4uke0Ur+B4NRQ3d48qEtG7l91LY59gCJndZ4YI16xmaW1nE0y JPHRHi/nm7oZpAgUX4Nw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xh5jx9fa4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Apr 2024 02:32:49 +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 43G2Wmew004565 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Apr 2024 02:32:48 GMT Received: from [10.110.8.16] (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; Mon, 15 Apr 2024 19:32:47 -0700 Message-ID: <4658e8e9-9720-4622-9cd1-03faf790ea21@quicinc.com> Date: Tue, 16 Apr 2024 10:32:45 +0800 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V3 0/3] wifi: ath12k: report station mode stats To: Jeff Johnson , CC: References: <20240414131008.71519-1-quic_lingbok@quicinc.com> <3103b7cf-fa1a-4bfc-ad78-301965b72035@quicinc.com> Content-Language: en-US From: Lingbo Kong In-Reply-To: <3103b7cf-fa1a-4bfc-ad78-301965b72035@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed 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: Ri2_7CtGdfN1OFgsnvHK_2Yj8P0iGCVl X-Proofpoint-ORIG-GUID: Ri2_7CtGdfN1OFgsnvHK_2Yj8P0iGCVl 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-16_01,2024-04-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 suspectscore=0 adultscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 mlxlogscore=999 spamscore=0 mlxscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404160013 On 2024/4/16 0:51, Jeff Johnson wrote: > On 4/14/2024 6:10 AM, Lingbo Kong wrote: >> 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 + > > My Qualcomm Innovation Center copyright checker reports: > drivers/net/wireless/ath/ath12k/dp_rx.h copyright missing 2024 > > However note that "wifi: ath12k: support suspend/resume" is modifying the same > file, so if you rebase on that you'll pick up the copyright change > Ok, thanks for pointing out. Best regards Lingbo Kong >> 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(-) >