Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1907261rwl; Fri, 31 Mar 2023 20:24:16 -0700 (PDT) X-Google-Smtp-Source: AKy350aXAbXjZa6PGO3HdyNX1kr7xvjp8bUREab8RLja0ah4j6nnBGtrSK4Pw7KIn6HNPy4XjI0c X-Received: by 2002:a17:902:f34c:b0:19c:fbdb:43cb with SMTP id q12-20020a170902f34c00b0019cfbdb43cbmr23524407ple.51.1680319456737; Fri, 31 Mar 2023 20:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680319456; cv=none; d=google.com; s=arc-20160816; b=qu2iow0FwIHgT5w/dvDgM5T9YJoeo8bj5AfbqIRN1Et6vdvII1SBj9E5YfzKKwKy2f 84CDlsadtFWeOOOje/WqIdseLhyhroIy/nXoE09HRtKyQh6tqCGcbC/32WpQNDNWq/QW vggdwO+ixvN5fs0gPequduqpbJiR+qmEXu9TJqSoqTe5dtb1DnFly/CGuT/9sE5knUNo wvznomuuFut37WUZefrupE4aZo5RH/UJMMI4nBmGckTE2+ljcoJJW6lfTlynJ4340Sbn Umjjq4x99lkTxYe6whY1oghl/2msNn6DKTBJaUubnmIs5GitugZsnQYoXcpY8WhVWXmm 9UeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=d/wn6ayMl3fG01C9loiqlX5RBuLzGOZIkBW3RdLLuf4=; b=Zana6XW5leXd6miUnmJuZPUakV4gOL8aR3ii3475HMkflzMkJUiWqAPu91K6C9zsoF mSLF2wsJt6SCRCdRqMJAKZpM68eezkh44mcmEeF9+D5preaTI/mhn01s6TYwu9p6yFGj Ejf6sc+G/7dV+dxTeT/TlPqVPkXi6vd5XjX+ORgnwg7VZkobIN7FLeDgOk36RDA+UJPN vX7pzvDSM3gNOyhKpmtEdbb8kllS4ftk4CmiJY9K4pVpb4n3f1CJ1AmP0m+3CwP2NZEv 2Rk37lMBNB+SCYpMWOA77Gf89ceFWhXMgGtzZ8L2dUmYHtFE3Rt47ozWr/pUhmE/yiAR Ah6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WgkPQi42; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e66-20020a636945000000b0050c10b43533si3953826pgc.60.2023.03.31.20.24.10; Fri, 31 Mar 2023 20:24:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WgkPQi42; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233194AbjDACuJ (ORCPT + 58 others); Fri, 31 Mar 2023 22:50:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231775AbjDACuI (ORCPT ); Fri, 31 Mar 2023 22:50:08 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97D0311E82 for ; Fri, 31 Mar 2023 19:50:07 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3312X5bj009920; Sat, 1 Apr 2023 02:50:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=d/wn6ayMl3fG01C9loiqlX5RBuLzGOZIkBW3RdLLuf4=; b=WgkPQi42aJiTCQEESRsJTGBgq7BNXbxbHEfucI6d3Ld7gjn/CJOFc8+ByualkI7zLYUj 3MNmFgoqaIecW7YMsd1cRoPwHrWxs7oQhDHADoNEjaYLaZfCSfn/QTea+VHpfm65/wqL b42XZGzSRtN+XQg6mu58YGw62KfVtShvU1ge7b+TMZDg2i0bAmKRaOk6gYQOA+ph6atX SBXS2XDf/O665dqkfeX+lXdOZQmCocWCMZWA2HvrTZ8kX5zIa306dN8mESCH2JJxqx+u HmcJp/m1ynhmLOC0vdxCQN9CHZC+wsf1cK++z0a6yDaiurakOqLx8sJ6XcP01Y6Kkksf TA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pp45h92aq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 01 Apr 2023 02:50:02 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3312o2In019470 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 1 Apr 2023 02:50:02 GMT Received: from pradeepc2-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Fri, 31 Mar 2023 19:50:01 -0700 From: Pradeep Kumar Chitrapu To: CC: , Pradeep Kumar Chitrapu Subject: [PATCH V2 2/2] wifi: ath11k: Fix incorrect update of radiotap fields Date: Fri, 31 Mar 2023 19:49:32 -0700 Message-ID: <20230401024932.11722-3-quic_pradeepc@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230401024932.11722-1-quic_pradeepc@quicinc.com> References: <20230401024932.11722-1-quic_pradeepc@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: u0g6N53u9oNeqCQ5--55I4RG-MME6Ywx X-Proofpoint-ORIG-GUID: u0g6N53u9oNeqCQ5--55I4RG-MME6Ywx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-31_07,2023-03-31_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 impostorscore=0 phishscore=0 mlxlogscore=999 lowpriorityscore=0 priorityscore=1501 spamscore=0 adultscore=1 clxscore=1015 malwarescore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304010023 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fix incorrect update of ppdu stats causing incorrect radiotap fields. Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1 Signed-off-by: Pradeep Kumar Chitrapu --- drivers/net/wireless/ath/ath11k/hal_rx.c | 4 ++-- drivers/net/wireless/ath/ath11k/hal_rx.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/hal_rx.c b/drivers/net/wireless/ath/ath11k/hal_rx.c index 7f39c6fb7408..d462b36c3cb2 100644 --- a/drivers/net/wireless/ath/ath11k/hal_rx.c +++ b/drivers/net/wireless/ath/ath11k/hal_rx.c @@ -1023,7 +1023,7 @@ ath11k_hal_rx_parse_mon_status_tlv(struct ath11k_base *ab, info1 = __le32_to_cpu(vht_sig->info1); ppdu_info->ldpc = FIELD_GET(HAL_RX_VHT_SIG_A_INFO_INFO1_SU_MU_CODING, - info0); + info1); ppdu_info->mcs = FIELD_GET(HAL_RX_VHT_SIG_A_INFO_INFO1_MCS, info1); gi_setting = FIELD_GET(HAL_RX_VHT_SIG_A_INFO_INFO1_GI_SETTING, @@ -1446,7 +1446,7 @@ ath11k_hal_rx_parse_mon_status_tlv(struct ath11k_base *ab, * PHYRX_OTHER_RECEIVE_INFO TLV. */ ppdu_info->rssi_comb = - FIELD_GET(HAL_RX_PHYRX_RSSI_LEGACY_INFO_INFO1_RSSI_COMB, + FIELD_GET(HAL_RX_PHYRX_RSSI_LEGACY_INFO_INFO0_RSSI_COMB, __le32_to_cpu(rssi->info0)); if (db2dbm) { diff --git a/drivers/net/wireless/ath/ath11k/hal_rx.h b/drivers/net/wireless/ath/ath11k/hal_rx.h index f6bae07abfd3..064796935f9c 100644 --- a/drivers/net/wireless/ath/ath11k/hal_rx.h +++ b/drivers/net/wireless/ath/ath11k/hal_rx.h @@ -385,7 +385,7 @@ struct hal_rx_he_sig_b2_ofdma_info { __le32 info0; } __packed; -#define HAL_RX_PHYRX_RSSI_LEGACY_INFO_INFO1_RSSI_COMB GENMASK(15, 8) +#define HAL_RX_PHYRX_RSSI_LEGACY_INFO_INFO0_RSSI_COMB GENMASK(15, 8) #define HAL_RX_PHYRX_RSSI_PREAMBLE_PRI20 GENMASK(7, 0) -- 2.17.1