Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp266147lqk; Thu, 14 Mar 2024 02:28:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVo6TTC/Y3JApbSoONwgi0pasMGLJnpUUgLFYn+8KLjSmlxklxHKa8y1Smn6nrao/eMIDVna0BwcgKaQcAjepWkgyXnMG0PVSdRciPf8g== X-Google-Smtp-Source: AGHT+IGqc/BADo7eXIhakBPiDUxxG59VtbHGJNsye34tz6dQNoOx/9hB0bqkbZxGCU7IUZWuhJlO X-Received: by 2002:a05:6a20:244c:b0:1a3:4638:1aa6 with SMTP id t12-20020a056a20244c00b001a346381aa6mr367230pzc.30.1710408500337; Thu, 14 Mar 2024 02:28:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710408500; cv=pass; d=google.com; s=arc-20160816; b=pfJHWtKrpXnKSUzN5tQZnbSEzlfU3tASoucEURROPaPwOyyPbOmzY5so9nJryinK5n XVgJsk44qTbeRViim4xih3KuDxfn1ny56cbFy8ejYOaFXvRvnhJ19VQOW6E5vP1KrB1A HYQefZMuSscELwLzdrBsdAHdDG9QEtj+Ynqzqx1EAnkbCyp2r6zTA0TDXNcM9kQ+IIym 0XLqru5Z8msLWdI/NVVDeLBwOt3z63nd41GdiB8Oi7Bcvk3bKknrs0Wd6c6bv9fd3hGo 4gMVKC5vbF7au0qK7HJM8kbh2hyWJPk3tCI+3q5ALTJ37gK1jtMCCtLchMhMivigBno5 ZiSg== 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=NDCgEUAAUG+BJEiBMUHxjJYf9BD9fQ4xHSOClod/mCs=; fh=xv7jQgBDBjvi4NFA/N8aQ6Tr+8v7/D+2rQx2ydw2/5M=; b=a+Vu82TXAJ8nf1KuEO60WscvLrPaR5G5sTnIYuUF92a0CpBc5zzXHjHqUiL7Q4yJAr zee6wvfnLtyUWauhHWjp/86pAcIIe1N+nACC+txT4FE/CWyo5v5VqDcEHvmyAhOo9IhR olam9q8vTEWjkccSW+eNY1mPQhJS0lxY7gVb/GTeMwhbleZk8QDcDj+flL8lgz3rctAZ Ru+/qyDqaPyJyp6Gy1jCrbISxNDqHobKDRIqG1VomOqBaurWV2OkieXDO4b/8tiwqRJ6 BKTgNQralQCeqhuwMBU/6YRnDB36Nm1DflMKxjP4zLGBqX+dGL+nzv6A5RzBrgzNFkf1 B7Gg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=U6JVC39S; 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-4736-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4736-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k11-20020a63d84b000000b005cf588da70fsi214746pgj.643.2024.03.14.02.28.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 02:28:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4736-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=U6JVC39S; 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-4736-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4736-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 247CBB21C3D for ; Thu, 14 Mar 2024 09:27:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 359026BB45; Thu, 14 Mar 2024 09:27:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="U6JVC39S" 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 A13126D1A1 for ; Thu, 14 Mar 2024 09:27:33 +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=1710408455; cv=none; b=f6CsKOO0HKJIy2jePo95FN1i0bKIZcUF6MGyoFrjrp1wM9WVAHFlRSgakqYJUCOzu4gOCEbUDcIOsEJDs6peBbWF+/18TmZIy/VtWmzsV0x3zZDBDUsO29hoCgXNLDvBU33sc82hyHy071M7blH1ng76UHAfshs18aIONHjgP8U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710408455; c=relaxed/simple; bh=3upzWNXo7I9cyo6kuyN3v6u4c/vo6o5J41kcqwLENvs=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=lHMwfLDskLi7Z3fTS4YY5JsUqQ4MPIsvaosJ98hIo2mm8eF/ickUpbJGvoTfLL2T+rXXRfbHz2QZ3Q+jgJgrwAf76KsvRXOAMWl9SDiYGplw6H+6g33AMCTBt54GzqRb1wGGIaOWv735bzBOMzcWBNxA1mD4uZCT5pFXoiVjKws= 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=U6JVC39S; 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 42E6co6d023793; Thu, 14 Mar 2024 09:27:27 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=NDCgEUAAUG+BJEiBMUHxjJYf9BD9fQ4xHSOClod/mCs=; b=U6 JVC39ShGYEFVa9/yadsyi4VFhBtdBOOgdHiu5NTTTK1GPJBNABKHNEG2pDlSM9GA 3W4+dna70Q9flP88ITbV43BI1oC/01A1TBNjO6ewu71ErTVx6XoPLo7cOYJhQJzm rpoQgY4k9Mx9TV7/eEhuoEQC5oWT4WhLTiZ5zY2B4ERp3hR7FbA/pY/LU2lbKy9y XzWzslzxIcFE2z4buuC2bm/9mgkel8nvTs+chvVpKkZDFLxWKA+hM9XtR7g3aMNh LPknu7quf/gf2rmsc187HR39lFFX2eXSCCr60azUBBjIQFwDXiPkWA87Uq1KO5xS n4aZIrULm9iyFuFER61Q== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wupch12vw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Mar 2024 09:27:27 +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 42E9RQHq010245 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Mar 2024 09:27:26 GMT Received: from [10.110.125.139] (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.1118.40; Thu, 14 Mar 2024 02:27:24 -0700 Message-ID: Date: Thu, 14 Mar 2024 17:27:22 +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 v4] wifi: ath12k: report tx bitrate for iw dev xxx station dump To: Kalle Valo CC: , References: <20240219095802.1147-1-quic_lingbok@quicinc.com> <87y1b7jkxu.fsf@kernel.org> <6f39eb1c-97f7-4029-a5f2-5ab36ff0f0a6@quicinc.com> <877ciq9h3e.fsf@kernel.org> <4e67118d-80e4-422e-aa39-73b891ee6042@quicinc.com> <87a5nkkfs1.fsf@kernel.org> Content-Language: en-US From: Lingbo Kong In-Reply-To: <87a5nkkfs1.fsf@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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: U1r8I_g-PpgggMJv87MeaAnSjIFBIsP7 X-Proofpoint-GUID: U1r8I_g-PpgggMJv87MeaAnSjIFBIsP7 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-03-14_07,2024-03-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxscore=0 priorityscore=1501 impostorscore=0 phishscore=0 lowpriorityscore=0 mlxlogscore=950 suspectscore=0 bulkscore=0 adultscore=0 clxscore=1011 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2403140066 On 2024/2/28 19:08, Kalle Valo wrote: > Lingbo Kong writes: > >> On 2024/2/27 21:23, Kalle Valo wrote: >>> Lingbo Kong writes: >>> >>>> On 2024/2/26 23:37, Kalle Valo wrote: >>>>> Lingbo Kong writes: >>>>> >>>>>> The tx bitrate of "iw dev xxx station dump" always show an invalid value >>>>>> "tx bitrate: 6.0MBit/s". >>>>>> >>>>>> To address this issue, parse the tx complete report from firmware and >>>>>> indicate the tx rate to mac80211. >>>>>> >>>>>> After that, "iw dev xxx station dump" show the correct tx bitrate such as: >>>>>> tx bitrate: 104.0 MBit/s MCS 13 >>>>>> tx bitrate: 144.4 MBit/s MCS 15 short GI >>>>>> tx bitrate: 626.9 MBit/s 80MHz HE-MCS 6 HE-NSS 2 HE-GI 0 HE-DCM 0 >>>>>> tx bitrate: 1921.5 MBit/s 160MHz HE-MCS 9 HE-NSS 2 HE-GI 0 HE-DCM 0 >>>>>> >>>>>> Tested-on: WCN7850 hw2.0 PCI >>>>>> WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 >>>>>> Tested-on: QCN9274 hw2.0 PCI QCN9274 hw2.0 PCI >>>>>> WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 >>>>>> >>>>>> Signed-off-by: Lingbo Kong >>>>> Please use full englist words like transmit instead of tx. Also the >>>>> title could be simplified to: >>>>> wifi: ath12k: report station mode transmit rate to user space >>>>> Here I assumed this only works in station mode. Or does this also >>>>> support AP and P2P mode? The commit message should explain that. >>>>> >>>> >>>> Ok, i will apply it in next version. Thanks for pointing out. >>> After rereading my comments maybe keep the title simple like: >>> wifi: ath12k: report station mode transmit rate >>> But it would be good to clarify in the commit message what modes >>> this is >>> supported. And what hardware families support this. >> >> Hi kalle, Could you please offer your opinion on this commit message? >> >> wifi: ath12k: report station mode transmit rate >> >> Currently, the transmit rate of "iw dev xxx station dump" command >> always show an invalid value. >> >> To address this issue, ath12k parse the info of transmit complete >> report from firmware and indicate the transmit rate to mac80211. >> >> This patch only applies to the WCN7850's station mode. >> >> After that, "iw dev xxx station dump" show the correct transmit rate. >> Such as: >> tx bitrate: 104.0 MBit/s MCS 13 >> tx bitrate: 144.4 MBit/s MCS 15 short GI tx bitrate: 626.9 MBit/s >> 80MHz HE-MCS 6 HE-NSS 2 HE-GI 0 HE-DCM 0 tx bitrate: 1921.5 MBit/s >> 160MHz HE-MCS 9 HE-NSS 2 HE-GI 0 HE-DCM 0 > > Looks good, except for readability I would add an empty line after "Such > as:". > > I noticed that the signal patch depends on this patchset: > > https://patchwork.kernel.org/project/linux-wireless/patch/20240219111417.1185-1-quic_lingbok@quicinc.com/ > > In that you should submit both patchses in same patchset. But please > wait until I have reviewed the signal strength patch. Hi, kalle, Would you mind if I kindly inquire whether you might have forgotten to review "wifi: ath12k: report signal for iw dev xxx station dump" patch? After you review, I can put the two patches into the same patchset:) Best regards Lingbo Kong