Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp102018rdh; Mon, 30 Oct 2023 15:27:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGPJjVbSx01qk8+ZryZiOk+mmLm0Vk5d4GsIZw0T/HRXfE7wmHxgughQdq60+dcADtch3pY X-Received: by 2002:a05:6870:1290:b0:1e9:95c8:e15f with SMTP id 16-20020a056870129000b001e995c8e15fmr12705043oal.13.1698704876412; Mon, 30 Oct 2023 15:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698704876; cv=none; d=google.com; s=arc-20160816; b=xphrriIKyrbi0B+paFXHB2NvrQy5kaKcMW3R99gacADuPQVsshQO0VIdzgFOUgNCYT TwuJ9dtQwQVdutZcbT2S78g1vz9x6od7D7kl4cJEjUImCDKGMaZjIezuTchlMW92QKaX LBDPpequb4tSWrEDPk7RG7uRBeOy9VTExiV9rzXM20O1bN5H6nWTJXilcd5q+lagJ0u1 obCvBk7Sf/8qrX5U5TVweddZhn2/81detXoN0sODzziOGgpS+8PvcYwCKjJY6VIkKP3d 82Ik8HjXlLwjls1cCnDfBFVUXU/4r6EhUzkUgOHpWBvt6kdN626qgfAmYVvwIB3KI04o kkQg== 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=1W707R74FAW86aGwU3FS4T962vG0ezD5vt7ID3Sq1fo=; fh=sB0dFRXwMcAjaZrbDM545W07IpYsn8YJ8QBcPnVOzDU=; b=QhYRQEADOj42FM9h6YlVm0H+/TCt8HK4FB3rc3gRtm80tSfBqEU5IgqtoV2Ua+thQH MpiaAth5ihkZmXcBgqhzONMrroJzdj4kKkp8RkMEjen7JtuImAssrFU7FxFypNANjEJt 2gd85jzEVBXm+XDa/MQhg1Yg1+ykkA1L8oSIMJxJJPUlKdbtJ5quQPwoOaiGvpV7Ndj8 QixEmj3DtF8clmppHQxBh9CpV5wtSLmhDYskRXswlZ67L55bG7ZS6n9zzW7keY2tWVJA gKk2WIbIIIKuTjxB6wKYIZZZGRQtmIGumyoDircaukXc5PldSFVfLLl9H8T57niyEktq pShA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lWeiZGiP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bx37-20020a056a02052500b0056a1ed17deasi71384pgb.675.2023.10.30.15.27.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 15:27:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lWeiZGiP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id CA9BE80C592E; Mon, 30 Oct 2023 15:27:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232140AbjJ3W1v (ORCPT + 52 others); Mon, 30 Oct 2023 18:27:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231985AbjJ3W1u (ORCPT ); Mon, 30 Oct 2023 18:27:50 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01757DD for ; Mon, 30 Oct 2023 15:27:47 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39ULrZ0N002481; Mon, 30 Oct 2023 22:27:45 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=1W707R74FAW86aGwU3FS4T962vG0ezD5vt7ID3Sq1fo=; b=lWeiZGiPhotUMD7T8Dl1nA1wqiAg636XjZe71BxbuALl/2lp4z1zbbBx+rVCCMceJwF2 o+SBw6HAF+HZdklqLvwZI7k3GPRtsE+FX7QQN2DvASnmjhzBOl+pKv6yVLfSq+50te6L 3RawmjNi2VrWPqksyWdtUSZPEIMEGwCgfIAhN6BTVgFTCHvy18wKV2HN4SYVI+ispKkV qun7x2KD2rSV81WDn0kHJJ7ITe/QFlcll2pT93+jLA1ZDIhjdEcfWIr3Fk5Se/Ab32QF dviKFXignIkEpXBfIGrIbShGlu32ohgeC7/AwlADz6B5upiwk57mVjrz00eAcMF5BjNB Ww== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3u2b2qsjcb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Oct 2023 22:27:45 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39UMRigt021359 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Oct 2023 22:27:44 GMT Received: from rajkbhag-linux.qualcomm.com (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.39; Mon, 30 Oct 2023 15:27:42 -0700 From: Raj Kumar Bhagat To: CC: , Raj Kumar Bhagat Subject: [PATCH 05/13] wifi: ath12k: fix fetching MCBC flag for QCN9274 Date: Tue, 31 Oct 2023 03:56:52 +0530 Message-ID: <20231030222700.18914-6-quic_rajkbhag@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231030222700.18914-1-quic_rajkbhag@quicinc.com> References: <20231030222700.18914-1-quic_rajkbhag@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] 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-GUID: cYFvstj5mkp_-rqzFi77jAxO2StNYAoc X-Proofpoint-ORIG-GUID: cYFvstj5mkp_-rqzFi77jAxO2StNYAoc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-30_13,2023-10-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 adultscore=0 spamscore=0 clxscore=1015 phishscore=0 priorityscore=1501 mlxlogscore=999 suspectscore=0 impostorscore=0 lowpriorityscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2310300176 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 30 Oct 2023 15:27:54 -0700 (PDT) In QCN9274, RX packet's multicast and broadcast(MCBC) flag is fetched from RX descriptor's msdu_end info5 member but it is not correct for QCN9274. Due to this with encryption, ARP request packet is wrongly marked as MCBC packet and it is sent to mac80211 without setting RX_FLAG_PN_VALIDATED & RX_FLAG_DECRYPTED flag. This results in packet getting dropped in mac80211. Hence ping initiated from station to AP fails. Fix this by fetching correct MCBC flag in case of QCN9274. For QC9274 MCBC flag should be fetched from RX descriptor's mpdu_start info6 member. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.1.1-00188-QCAHKSWPL_SILICONZ-1 Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 Fixes: 8f04852e90cb ("wifi: ath12k: Use msdu_end to check MCBC") Signed-off-by: Raj Kumar Bhagat --- drivers/net/wireless/ath/ath12k/hal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath12k/hal.c b/drivers/net/wireless/ath/ath12k/hal.c index eca86fc25..e3b06a5ff 100644 --- a/drivers/net/wireless/ath/ath12k/hal.c +++ b/drivers/net/wireless/ath/ath12k/hal.c @@ -449,8 +449,8 @@ static u8 *ath12k_hw_qcn9274_rx_desc_mpdu_start_addr2(struct hal_rx_desc *desc) static bool ath12k_hw_qcn9274_rx_desc_is_da_mcbc(struct hal_rx_desc *desc) { - return __le16_to_cpu(desc->u.qcn9274.msdu_end.info5) & - RX_MSDU_END_INFO5_DA_IS_MCBC; + return __le32_to_cpu(desc->u.qcn9274.mpdu_start.info6) & + RX_MPDU_START_INFO6_MCAST_BCAST; } static void ath12k_hw_qcn9274_rx_desc_get_dot11_hdr(struct hal_rx_desc *desc, -- 2.17.1