Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2923142lqp; Mon, 25 Mar 2024 13:12:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXczC/6wkg+8UhpLzrFZPTgLk5c/0hgmMKrYur2Df3WK1OqQBQB/LBAV0707sexQkolFsMBcL93p7ys2wqCYrBhAe7SJz8VlnbELll80A== X-Google-Smtp-Source: AGHT+IEZXyPrommJZgvYCZRxGvFZ54P5vZhC66zyaM7x/KOfQUKbgJ/I5pEBVra98h3DzjB+k0Kd X-Received: by 2002:a05:6830:16d6:b0:6e6:a9e2:efdb with SMTP id l22-20020a05683016d600b006e6a9e2efdbmr9355598otr.24.1711397535605; Mon, 25 Mar 2024 13:12:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711397535; cv=pass; d=google.com; s=arc-20160816; b=YdHalndl2PpEyfO0vqKfHJmbmNumZ1+oHjpEwgV7j2qx1G1Tq+Fjf3/8cK4DfRx16r ewZv6Xf9eXKQxMz7x8mCaaI4LEhGXF6nO8CidC7wxafHjFhmI25jVlUcWzqfoP+EhQfx 7L1ilBcR0JhK1eE39e2nF+Blb7ppoJpjXmZac+LiatYe9ALXML1jPnt7O+iU7chXVrUk j03P/EgNguSTqbPJLvvZF/OAh6PKrkfGPKz9CesCWm/iQnCqeLU6tzu90f7SGPrtFDnB +Bbd2JudVfVsKNmrSCCnAgM0ofl/FQ2EJ8hRZtuColfhwP5ZnDIFNw+SSqMnyrW/7ajh jQuA== 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=z3/lnMI5E9kXNMHD4HDVkf5R8rR8Yl+LoOUITg35Y+4=; fh=sG9jhBHEsNc76hLve58zfxxmeh0GUKp4yFB8ltJHOnE=; b=o3NfLYMxHZNl24u50nGaQ/oUiitH3kUDX7JsS8Ug9U1gaWNpeKBKHoo19wtYEPjEaR K4PVXajACmHtq3LaWZ5z3euhkxigU3bJiwqm06FSs3Ri8kDkcrCjoAsqxqF59AJ4oRnz 9sdpYVnNJdaRuECbm/wZoZVf7Ac5tlugF/e3QNzkEKqf0CDW9cH2WvCR5aiDhRBzmfJZ TpgpN0VDx1arg6+ffHIt7BR2RF2t+YmRofDLDLELuzfBDcihIjhBz0Lk28WdTxSWNhMM 4VHsgwf9EcB+P444FaiKohS+sSYcVF3w08aSQR31qZ2Z7XAXRfYUewsIxGKuz2FRgqhj snaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MrAbmCcY; 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-5245-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5245-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. [147.75.199.223]) by mx.google.com with ESMTPS id l11-20020a05620a210b00b00789e88e635bsi6054966qkl.514.2024.03.25.13.12.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 13:12:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5245-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MrAbmCcY; 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-5245-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5245-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 0CB3A1C3105D for ; Mon, 25 Mar 2024 20:12:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F197F54279; Mon, 25 Mar 2024 20:11:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="MrAbmCcY" 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 89A7B45025 for ; Mon, 25 Mar 2024 20:10:55 +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=1711397460; cv=none; b=c/4Z80C0ZPeYXHy35v7igHcY0WpU1Tc2a7bWEqKy+mDTOzvP9UjRvTY4ZjBXiqetOefgEgFQNoNnlyA5/tp3ihzKoyoUSqoYFV4wAL2auc89sKM0qBr6cKjBNzaGn8l/eLdZMhK6qmjxs+0gDODaBo7T4D5bVFCHDQuytotGviI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711397460; c=relaxed/simple; bh=+kpIzwE7p/69lCuC7Jz7Mc/qR2Y4Qx6gE84bxs7ZLNI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YARjWTGeO9Iyhn2+yUufuuWdW0NzQPix006WeN64ObuNPLB0T9Nsk7Ayxl8ZTKtX8ZAU68+UIWIrOGI7yI3HCCjQnZxG8BC4CYAKJVvFxLGUdmEOc0t6+u+NjlDTZjJzSZTxHs0NuLoFqXEPIdRGh266TMlYWBsY/zw3LhGkcio= 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=MrAbmCcY; 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 (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42PJ9POA010263; Mon, 25 Mar 2024 20:10:52 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=z3/lnMI5E9kXNMHD4HDV kf5R8rR8Yl+LoOUITg35Y+4=; b=MrAbmCcY2gvd5DH4WrzNl8sCl/Gu9Veh/hMd ZF2lcadStEU2CD/m5cf7o6dHUMF8oOUL2JcnBhy2SNSU0olIqNiuFL/3411oCbtq fIMtOhnP1FQRjwM1w8A0w0AfUIZOrkMlJVR3AQFwsMSUgBN0lIn0YGG6jdZc9EO3 yYqvFzjW+GFNgd97oqTXxmoHMOfBV9zhB6/fFTDQXaEUS3JOztdJvsoBoSDPq+up nYDi1hZcmvXrwIY9KY5PqnBdftPnzQoIvvvM+mbZs3lIsOFn01MoiDKo2SYUoNhy 4VSnfooNM5Kb0K6ckeZxX4EPsfIA8ys3WyLQ5hrcIJscNyf9fg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x34hp1t3u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Mar 2024 20:10:52 +0000 (GMT) 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 42PKAqVa007404 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Mar 2024 20:10:52 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.1118.40; Mon, 25 Mar 2024 13:10:51 -0700 From: Pradeep Kumar Chitrapu To: CC: , Pradeep Kumar Chitrapu Subject: [PATCH 06/10] wifi: ath12k: fix TX and RX MCS rate configurations in HE mode Date: Mon, 25 Mar 2024 13:10:27 -0700 Message-ID: <20240325201031.10837-7-quic_pradeepc@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240325201031.10837-1-quic_pradeepc@quicinc.com> References: <20240325201031.10837-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-ORIG-GUID: YYVkBTP9mdwReybHbw8AqwALqY9_Tz2V X-Proofpoint-GUID: YYVkBTP9mdwReybHbw8AqwALqY9_Tz2V X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-25_19,2024-03-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=998 suspectscore=0 spamscore=0 lowpriorityscore=0 phishscore=0 impostorscore=0 priorityscore=1501 clxscore=1015 mlxscore=0 adultscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403250123 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 34de3d16efc0..c550ced42084 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 752fc2d53d8f..cf273298227d 100644 --- a/drivers/net/wireless/ath/ath12k/wmi.h +++ b/drivers/net/wireless/ath/ath12k/wmi.h @@ -3863,7 +3863,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