Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp144542lqo; Wed, 15 May 2024 09:53:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVnQFpxAK6lUOAdTiQaw46yCIptEUDXZXCmCX8FZNrnSkYluRLWs7ER8Uoi4NGubiq2tDL++bW5/0U8WeENpzTfTViEBgXs8qy9Xo8XdA== X-Google-Smtp-Source: AGHT+IGJEYBw8euDMttoMV7LKFNHJikUncqZVfrctKdaWoZkpJSYV4tPfDFLmFWkSc704gXkb4Nk X-Received: by 2002:a9d:654d:0:b0:6f1:2287:5737 with SMTP id 46e09a7af769-6f122875f07mr2877731a34.11.1715792015670; Wed, 15 May 2024 09:53:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715792015; cv=pass; d=google.com; s=arc-20160816; b=r8D3mLNI1uSj/HFgAZQoua43xPLr978csFiAFH/wNhWsxmowXHDItPNi2VFmKYbnOB FCqtKJk4bP4slITl1kOIc+i1QvMRhIkoXMVZ+4W4F4f9jX3XS9i02FX6ynGgOCmwCUAy /gvo/QQI28KbUhBQQlmrHVLLfJLoxM/YEDat9+mOaBtn6wQQyU7MfHngo/JCDz8ypUMV uzfBWMKwH8wRGYSO9HWFzCcpa5xa+qPrw5tXYsbncJKIOWKKhuKSWpm1l+ApW0VQrVX5 6xaS7/dJ3HhS5+WfPWrRwxJKyz/J8DJB/klGgW4lhyG/HquyuiI2oKPwBBIBHVLU0ftf dRcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IQsauoBCVE1qWZrVWwIfxItkbhqqG48mE7XYo+pE3Ew=; fh=sG9jhBHEsNc76hLve58zfxxmeh0GUKp4yFB8ltJHOnE=; b=JiJbUIuRu2Fnp5flMIwW5gHorz0zRoXbSMwY/IDudcOJYPgrQ8l4pDO/2TwwEwM2IO 22ifRRrvT8zB1sb5vrK+2C3No1Jx0pG9vjLKXd8lNKxm10jV3dGonXUMzmcCn1sNflcc 68uJhqQIZAN3WsnlSBJnzP4n/we3g4yX2Ye7mGrKHz19pQHoRmfNQBOjwg0MVn8t5liA q/XUdFoat3WVEaXdgY1jb1C/1S3SvGxG6RAODgA9rV+35qSuDriwRJFu6gOI7Jnf8nfF oI/TuO77I252/7UbPVG3GekHqkDEQjr0F0MeVqEGZ/dtbI8hmDE5r1r6qSKPPVKvaKn6 27Ow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="J/rwlhQo"; 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-7699-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7699-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792e0d1d024si735202485a.39.2024.05.15.09.53.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 09:53:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7699-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="J/rwlhQo"; 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-7699-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7699-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 656931C21837 for ; Wed, 15 May 2024 16:53:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D68A13FD75; Wed, 15 May 2024 16:52:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="J/rwlhQo" 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 037CA5DF3B for ; Wed, 15 May 2024 16:52:53 +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=1715791975; cv=none; b=lesfAoB9LUTJAOwMW0VHwtTvUEg7ZJrMY9L+2MdOyIdsQAn2BjuCrbFIk5M0Mr0sBdCVEa/Q1ALzPmXf//ho//yotju7iL/n33hMMFRPQJldrGWxax3qpghuuHqwfWdtASs80pSd65mOjsOojFdbEwdz7UA7qyIv4kCUmSKWXaM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715791975; c=relaxed/simple; bh=ibGtWxqoJO06xo2q7aN4tbKVqbQwKsgnG9x5nlJNz5A=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TwffvYQtdcMAc4F9iKNFFT+erb9xMdi1HcawSeqHALIpixzKcF9/hqZ2yk8D7ea2k+9h8A0kIzivW59j4df77a119YP3DFEDSKASbUMWjn6/sG4HSRd5l3YKS+8D5lkN+6Z/96LnFI65dszsVa9ttvv+jf53z/+rZAhuZZ9Jcv8= 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=J/rwlhQo; 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.18.1.2/8.18.1.2) with ESMTP id 44F90fOj009698; Wed, 15 May 2024 16:52:44 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=IQsauoBCVE1qWZrVWwIf xItkbhqqG48mE7XYo+pE3Ew=; b=J/rwlhQo37Wdc0qEmUpqt3RR3Awmx+KPvvcm dGTD4WqGJTU5Lr4P1yzPDmRsyqmvBptA4kUOeViN8K+7Ns7YotbjFTNh1IRr+ncO tTsA9oA3vE30VH/rf9c9Z0UMSmBstOgfwGUBZOYk/AXNDijqqsB8MgCSGEUozo+z WYGOfCMQJae7v4Wnpz7sjmNFP8HldwmG0JU+DXiNwNqMIi54NrfF/WP9Hc166ngL O36/J2X721p0X+Bu1+xJOZxRozAUFBAMG+jXnAHvq+GUlO8LlcPEsWD+fOHFFZ8S eoUXzJalf6IfQBYlC9IAMqn3QaQFutOvinab1XWEeoty5ItABA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3y3x51mjke-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 May 2024 16:52:43 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44FGqhPX015795 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 May 2024 16:52:43 GMT Received: from pradeepc-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.1544.9; Wed, 15 May 2024 09:52:42 -0700 From: Pradeep Kumar Chitrapu To: CC: , Pradeep Kumar Chitrapu Subject: [PATCH V5 06/10] wifi: ath12k: fix TX and RX MCS rate configurations in HE mode Date: Wed, 15 May 2024 09:52:27 -0700 Message-ID: <20240515165231.12114-7-quic_pradeepc@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240515165231.12114-1-quic_pradeepc@quicinc.com> References: <20240515165231.12114-1-quic_pradeepc@quicinc.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain 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: q1Oihuqf-W8GXBMylEf1nr0GUxOY1_44 X-Proofpoint-ORIG-GUID: q1Oihuqf-W8GXBMylEf1nr0GUxOY1_44 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-15_10,2024-05-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 bulkscore=0 spamscore=0 lowpriorityscore=0 phishscore=0 mlxscore=0 impostorscore=0 adultscore=0 clxscore=1015 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405150119 Currently, the TX and RX MCS rate configurations per peer are reversed when sent to the firmware. As a result, RX MCS rates are configured for TX, and vice versa. This commit rectifies the configuration to match what the firmware expects. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices") Signed-off-by: Pradeep Kumar Chitrapu Acked-by: Jeff Johnson --- drivers/net/wireless/ath/ath12k/wmi.c | 4 ++-- drivers/net/wireless/ath/ath12k/wmi.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath12k/wmi.c b/drivers/net/wireless/ath/ath12k/wmi.c index 3004c7463be9..7bf01cca327a 100644 --- a/drivers/net/wireless/ath/ath12k/wmi.c +++ b/drivers/net/wireless/ath/ath12k/wmi.c @@ -2112,8 +2112,8 @@ int ath12k_wmi_send_peer_assoc_cmd(struct ath12k *ar, he_mcs->tlv_header = ath12k_wmi_tlv_cmd_hdr(WMI_TAG_HE_RATE_SET, sizeof(*he_mcs)); - he_mcs->rx_mcs_set = cpu_to_le32(arg->peer_he_rx_mcs_set[i]); - he_mcs->tx_mcs_set = cpu_to_le32(arg->peer_he_tx_mcs_set[i]); + he_mcs->rx_mcs_set = cpu_to_le32(arg->peer_he_tx_mcs_set[i]); + he_mcs->tx_mcs_set = cpu_to_le32(arg->peer_he_rx_mcs_set[i]); ptr += sizeof(*he_mcs); } diff --git a/drivers/net/wireless/ath/ath12k/wmi.h b/drivers/net/wireless/ath/ath12k/wmi.h index 161e0ab5efe8..97500195ca85 100644 --- a/drivers/net/wireless/ath/ath12k/wmi.h +++ b/drivers/net/wireless/ath/ath12k/wmi.h @@ -3886,7 +3886,9 @@ struct ath12k_wmi_vht_rate_set_params { struct ath12k_wmi_he_rate_set_params { __le32 tlv_header; + /* MCS at which the peer can receive */ __le32 rx_mcs_set; + /* MCS at which the peer can transmit */ __le32 tx_mcs_set; } __packed; -- 2.17.1