Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp193789lqo; Tue, 7 May 2024 17:31:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXq+5P7yCs0CCfu1qT+anLot9O78dxy6LYMBl9I2n5/wlcNeM/jDmmIQXSGWHe0eGWHdOj7LdNtakC8tij8gjfn+JH5w/CbaXsrhmwYtQ== X-Google-Smtp-Source: AGHT+IGnX8PbSnkoQwmfq0wUnu5nfIeqaRGggYwz9ClOLYUN9zYxP/Aia3TAlu8BcVFkQX4Ib+R0 X-Received: by 2002:a05:6358:e488:b0:18f:81c1:a94f with SMTP id e5c5f4694b2df-192d2c29935mr165889255d.7.1715128299785; Tue, 07 May 2024 17:31:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715128299; cv=pass; d=google.com; s=arc-20160816; b=oZ/tBGoq6odIvn7PvrRQWFG6DgFf0vyrtZufBaBEbaUtQ1l1e+ulmLe5ukg92VNGMZ oQMsrGYocMpiIL+38T0ukeWLa/d4tjCdeoZ++oVwlywS5zLOcOtEEypUibHn7eJDygXK I28YXGIULj1hyaS9A0hkOqALOMgYfWlzxkeAAcugYLnpDfQ8kiDNX6munHFYSC/UMi2g ns4qvNtd8lGIms4FCeOIjZCwT26uZoe20NtkDvM9vWd9F8A06p7ShOnnZ6tHPDGrrUQV HHmTJp7h9SvIuXg/cpRZZTonaCImOn255pNOUeaGKlPA9XjcCvjAQsLHi4LCnhKIpD4l pw/w== 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=wh0y/FJJ4aZ/ETBd07+Md2EicPjVyvquEG3Q/h2Tbkc=; fh=sG9jhBHEsNc76hLve58zfxxmeh0GUKp4yFB8ltJHOnE=; b=gxvYEOE60VQPqeKr6s0Z6bFIGYwUOm6S1NuTSRh7ow6GpbLqbWF8TRzJcK8WSO+ImX uQsF7mfiX/GWhyYJjKWrtv2lJvS+aGfKCAUA8e7Hk8M+PfTZ3UrLHbO3q+ALoasgJkE4 XZf0sEZ5CvAWIUiNPK5uCqlRXRNCl+uGSRi0d93lLA1Q/qQ4CL6c+Xor8U76Ck6k7C3V LdKiqzEZrltAnMFgs4W82k7MUY0VjFEXEN0mVHHPHmP6yke0l55ghP3j02HrKCF26Q6s E2HP2YRmxGEgPMMDLixflmu+Ugzn/DqqBtzxT7/fWN51Jpxj7JS/euCCYzPVBEn/wG2v YzJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ToR3mgS0; 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-7314-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7314-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c27-20020a631c5b000000b0061a13c69025si9246633pgm.697.2024.05.07.17.31.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 17:31:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7314-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ToR3mgS0; 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-7314-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7314-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1BF2128486B for ; Wed, 8 May 2024 00:21:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A66FB372; Wed, 8 May 2024 00:21:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="ToR3mgS0" 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 01AA43D9E for ; Wed, 8 May 2024 00:21:10 +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=1715127672; cv=none; b=VidpxKiRXIiqU+R60T/3L/LwdzNjcr648Ao6BT/ZBDd648ol4c7GOgis+Yg0c8SDjB2KcMjpzcWlMeYFhVjlhJy14I7F+zC+zlYJGsd5ToucWKm/2f85lq1LHY1WjuAwJMN3VyK0pOe+eRo5v2TATHKbXyIIN66lUlc4scaxJc4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715127672; c=relaxed/simple; bh=+egyaEC0O1oSiW6ZuDmjv0GeKjZaGmnpD850PuScPNM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WoSVDLzWfJfYKroqiyZ5PRNqSLdcWRp97n31Ky0h2EnpAVTih2R3hDuwBUX8qBPae6IZJBZ3B3bi2WngRn2yef5kw41XSCTfqB+/2fDopXauecSbQS47ohMEuBQ5G0ZSWXxRY08nmwNxbI6Ta8BklEorVJHuQDqbsF+DpaJfzmc= 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=ToR3mgS0; 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 447NUclq014251; Wed, 8 May 2024 00:21:08 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=wh0y/FJJ4aZ/ETBd07+M d2EicPjVyvquEG3Q/h2Tbkc=; b=ToR3mgS0v8xnTamZQSXqdNgjDcerS+Ft2ECR i8qmVjfd70SEaohVldS5xLcMfVcj0LRhWWGNVDgZkzPs4wCr+fQBFZdw0fQOZ9px VyFwG5Py7Vmb+dVY0GelFbSBTvA1FHXHgW9+l8SpN+AOdlRiy075b7X5FNo0ouM/ 1+jqRxJE58JhNe0aBkwitnJoKyxsvCXk93G6kre4RLbRUMR+cKs8kYmRuxvY4W4L 9K0SGxHtdueLMbaCLTgBiwxIPqqr+9AktBxTEKR15DxHtghpVs/JUP2w1nekL6Oc 75w+QhCOR4HgYfFddnZic55pM4cOunPguTBXiuBC/RUFUbHXMQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xysg40kut-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 May 2024 00:21:08 +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 4480L70E032577 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 8 May 2024 00:21:07 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.1544.9; Tue, 7 May 2024 17:21:07 -0700 From: Pradeep Kumar Chitrapu To: CC: , Pradeep Kumar Chitrapu Subject: [PATCH V4 06/10] wifi: ath12k: fix TX and RX MCS rate configurations in HE mode Date: Tue, 7 May 2024 17:20:51 -0700 Message-ID: <20240508002055.17705-7-quic_pradeepc@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240508002055.17705-1-quic_pradeepc@quicinc.com> References: <20240508002055.17705-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: 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-GUID: P2MH6sPQcl6nJG_OVOSjlwsir0lsrVAp X-Proofpoint-ORIG-GUID: P2MH6sPQcl6nJG_OVOSjlwsir0lsrVAp 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-07_16,2024-05-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 spamscore=0 mlxlogscore=999 impostorscore=0 mlxscore=0 lowpriorityscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 suspectscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405080001 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 --- 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 7a52d2082b79..376d81c7550d 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