From patchwork Tue Apr 4 07:22:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Youghandhar Chintala X-Patchwork-Id: 78879 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2834895vqo; Tue, 4 Apr 2023 00:25:51 -0700 (PDT) X-Google-Smtp-Source: AKy350YZidEsxWNy8amB1UD+I83dhwYzPKPEbKm8HSNfyE2+/+p3E7uAxGLtRYlHF7LxVkt1g7XS X-Received: by 2002:a17:906:2897:b0:932:4990:2563 with SMTP id o23-20020a170906289700b0093249902563mr1247707ejd.24.1680593150770; Tue, 04 Apr 2023 00:25:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680593150; cv=none; d=google.com; s=arc-20160816; b=HEGoBeudodVmpBHTPQkByTbDbNUrJ9v2juF0EW+Gw3Hgs3la0ZBRixKmYXZAeTqxAP hSnWnN6eKt2e3WMZpUe27yjBXWX3n65f1t9Bka6PlgNmXOkYlHQL3E1nM/qNS2xaHMIm bRWeOwVg0seqLGm1AOwecChDwqBG/3dUMlX7GxSi/ChQihjTE33A6XpVbqZ4jtGY0V5n rA14XKJsea6r1Z5cWDFWrz+epxKcdoUd4D5+a+BlqTwCh5DQHvxE5F0teVir51dIrb9u nbqQmsuNAxIoJLwuax5dcjYfDr/udQqMnCjq3S3cFe4ybgUE2e2CHWJ4CMk4XhYF+7x7 RkOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UUYQzmKRF+c+OHY9b3+NQ/SAcXNPlhTghOL1eurbcJU=; b=RmQLJIbjQyNUXF7+1W1nLdI+ulvKss5ddatvtOyD+wnb08aW5hnsjxoUX/Y8+GbUIa v+DHHyyR6oONog92sQ8Shu8hfcwfLSUiOdCFoy4h5z/FhtbnOAhKlCGqlX5HNFircziT lKLgI76aWvHIUISTwYJ6BzA75OVslm2YYThHDb+MRVu1hGySGRls9k66q8UQvQH93AMU yj91iTNVTi9xgm0pFioyfmpLRzt5S0hWDOBBGfaaxXOmg7VLrTxtvrRwUr/6vV6cqfFs RJXjNI0O2cHo4l3YQGI3YiLFxnpDIWe1QaeYctKh8iINPuHzQDsWG8dv8dqZebbgxejX TAwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ktk3B1tY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wb8-20020a170907d50800b00947c4925900si6919641ejc.348.2023.04.04.00.25.26; Tue, 04 Apr 2023 00:25:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=ktk3B1tY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S233782AbjDDHXa (ORCPT + 99 others); Tue, 4 Apr 2023 03:23:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233900AbjDDHXW (ORCPT ); Tue, 4 Apr 2023 03:23:22 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1FC31FC7; Tue, 4 Apr 2023 00:23:20 -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 3343LBW9016659; Tue, 4 Apr 2023 07:23:19 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-transfer-encoding : content-type; s=qcppdkim1; bh=UUYQzmKRF+c+OHY9b3+NQ/SAcXNPlhTghOL1eurbcJU=; b=ktk3B1tYWoHM8Pe2tCB/6jPGziQNB6ATAaVcAIuBkGlIGSHhkhkeyS7q61l4TmTecbN8 CL/DsgaU3w9/TXLQrkEfi4yZR9P/aW+6jloN26+0ox5MWqCOZza8QmiiVOZfv5N4j67a g1WnaCJDNOSMZyrFPP2D+ddsht6DWr5LJFDGR+PgO5+f+8OLeeYbP9pNcdb7TLconYdy sFo3kOQ90oUoHbHGHxFxif06hEAHsng2tfoK9vrjxSi1HSUdQxQto6pIZaP7MGLEkF5d ifmF40SJ7y8XCiz8ddUdc+puk71EhbBJeC1KSJDIFoYrfnjU8b8S8icJPT8NVlKcZOc4 VA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pr4jm9c71-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Apr 2023 07:23:19 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3347NIZO014095 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 4 Apr 2023 07:23:18 GMT Received: from youghand-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; Tue, 4 Apr 2023 00:23:16 -0700 From: Youghandhar Chintala To: CC: , , , Youghandhar Chintala Subject: [PATCH 2/3] wifi: ath11k: Align RX MPDU info with the hardware for WCN6750 Date: Tue, 4 Apr 2023 12:52:33 +0530 Message-ID: <20230404072234.18503-3-quic_youghand@quicinc.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20230404072234.18503-1-quic_youghand@quicinc.com> References: <20230404072234.18503-1-quic_youghand@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-ORIG-GUID: 2NY3ZiZf1AriEX_7n6pXng-5TDgUy9Sg X-Proofpoint-GUID: 2NY3ZiZf1AriEX_7n6pXng-5TDgUy9Sg 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-04-04_01,2023-04-03_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 malwarescore=0 suspectscore=0 bulkscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 clxscore=1015 mlxscore=0 mlxlogscore=788 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304040066 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762229643540432625?= X-GMAIL-MSGID: =?utf-8?q?1762229643540432625?= Currently on WCN6750, we are seeing an issue where signal average field value in station dump is incorrect. This is because RX MPDU info fields in the driver are not properly aligned with the hardware. Due to this, we get an invalid peer id while processing the peer stats, and the signal avg value will not be updated. Fix this by aligning the RX MPDU info in the driver with the hardware. Change is applicable for WCN6855 as well. Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00887-QCAMSLSWPLZ-1 Signed-off-by: Youghandhar Chintala --- drivers/net/wireless/ath/ath11k/hal_rx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/hal_rx.h b/drivers/net/wireless/ath/ath11k/hal_rx.h index f6bae07abfd3..1d5f92611b85 100644 --- a/drivers/net/wireless/ath/ath11k/hal_rx.h +++ b/drivers/net/wireless/ath/ath11k/hal_rx.h @@ -414,9 +414,9 @@ struct hal_rx_mpdu_info { } __packed; struct hal_rx_mpdu_info_wcn6855 { - __le32 rsvd0[8]; + __le32 rsvd0[10]; __le32 info0; - __le32 rsvd1[14]; + __le32 rsvd1[12]; } __packed; #define HAL_RX_PPDU_END_DURATION GENMASK(23, 0)