Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp56426lqq; Wed, 12 Jun 2024 16:42:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVcdYDQC0VwP0zl5dZnC7k/oYBd2/jO1HkGX2sHz7czOvwQCDADd1eFzTRZ/F0qhIHlX/DrE023Qv3uXzHfDIDoX7ZDAL0pjDzvKr2HJw== X-Google-Smtp-Source: AGHT+IHQr6jvQPNpYK6sSmVuse8tOknO9yyMJruYjHWcEqOSs8kIxl0amRki5+i5m5IrGWrZw2E2 X-Received: by 2002:a05:6214:53c9:b0:6b0:6dba:c947 with SMTP id 6a1803df08f44-6b19158ff44mr27828166d6.18.1718235758329; Wed, 12 Jun 2024 16:42:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718235758; cv=pass; d=google.com; s=arc-20160816; b=w0COCtgLzVtDxMLpEOazrhE1jPyXIbFip6FTjMihnag3SYa5wWSY+cXrO1kwfMNutb 65nU6mEwbsfD4MbrRGpW/2X/rwkDQLjhqk/L/YWvPvrFt0EVpRIII8luYqZGQp/FhpdG SPH3RQQqghosypRQBkMRGrX4etRJdpf2C3g5fVKs/lLso9aU5ezAfArJZXOwOiot9woj EOy5YyJ+i+iYwZLPnZlYsEZOda9HWs4hlHKHd6qLRCFR4dX/e7nP8Nrofo/ULYC1AVrc T771OaVLF+cs5PCBO7VDKd+evIGQpPZIA+qxxiunWL7UTwsAQw60OMiXJV9QiCoFyeZw KwlQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=thWJ0OOE4Ek944dZkW6JtdoDZV7SPvWzntPeoi5X7yc=; fh=FUdFWCrTIuD+tPFxJi1T4gCpJojaOO5T5aNRzX5HxNE=; b=H5vt6GJXFbCYrCamnlkQHNTOfQ89UuT4lqNY7ifOMStEKZudI4CPxyOpiejWvjY/Eb o0KF2kz1Y9YcZC8QybMVpJIQx4qZkI3Sa58IRXHflJqrmy1Gn58P33vgfoY2SinaEU1X /jmAiJ/hmaLfW1+DPpBKIYTvnu/1HarLtc8KgcXQHM5xMX3NRqd8t9frbO2v2hTtHwQq z2/yVv78LKZDaWIwfq2jvREcF2zWvxDa+s5uBjgTRU8C+DbmuQnSY3A2MNRYs2hq41UU +1zUlTST9tVA4FskBt8o/7erHVjUvC0m5BK92pdlOOeYmG+8rEpxEcOOir7xy6buTN4f llqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=NW8yYMmZ; 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-8902-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8902-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 6a1803df08f44-6b2a5a16e52si2557326d6.55.2024.06.12.16.42.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 16:42:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8902-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=NW8yYMmZ; 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-8902-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8902-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 10A191C216A4 for ; Wed, 12 Jun 2024 23:42:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D13BE12C526; Wed, 12 Jun 2024 23:42:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="NW8yYMmZ" 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 4A3F512D745 for ; Wed, 12 Jun 2024 23:42:26 +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=1718235747; cv=none; b=UIIowAcWdYewvCVoeusTnPRjJCw2rO0S++N/eCw279m4OomHN2bcxZqkWpmg2EfEFi7TeHH91MYMzHX/yjAV1xqm6iXPksEyr6Lr5bvCK4/AWX8tbJKSkiS83HdUOe8QeKrwMfyHeakQcpjUM0/JWIak2cHW9r8BVLOKesO/jmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718235747; c=relaxed/simple; bh=UysASupzJYTMNmeQdtNKiYEVxLJ8l9HwHayDgeal3gU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=e/uswsRTuEvZ4ZuyRNQaqlFN32QH8T6vCGhHxw8DSVYxDGPbgDHu/P3/QuugEA0z6QtMAvFFMZeV1A7TirawyBHT3WTyn1Biuv3e8Xsr6l/bBRsgbRz+zAvg5eg6jl363XALZFYMSoUyj6Q/qonCalhfjWIzl1pQaqyCwlAGZSM= 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=NW8yYMmZ; 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 (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45CKnCDd022342; Wed, 12 Jun 2024 23:42:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= thWJ0OOE4Ek944dZkW6JtdoDZV7SPvWzntPeoi5X7yc=; b=NW8yYMmZek+Aj/qs kdKd4gUYnzTM5/LYNW6vDhtOj6KboFXGuq94quzM/x8R9IvzZMIDyodUFVyGKB5L h6xSb1+GPTGMOLrHWJvGUSpq1dvu9nsOvIOr0g0omlNc2gIY3nEu9W1by/H+uG15 US0LcoCqxpoH+fiSUODNuHbtm7Drujg78rGNm37jn4RPP6GzS4O/tb7eO+FLz5S0 T8SDDsKVTHoyTFI2/MKZ6yy0OlXB2jQAcHzaxP2A9SSpJ8RmuksUlY8dEORmOdxZ hnAnjQtbqqi2cYd8/hlQUfqXlZlY6/c0Y+Uoiuhg8X6LtWTHkZ9Ucm9oroiHa0kj t9JGgg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yq4s8jsf5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Jun 2024 23:42:22 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 45CNgMeM008032 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Jun 2024 23:42:22 GMT Received: from pradeepc-linux2.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, 12 Jun 2024 16:42:22 -0700 From: Pradeep Kumar Chitrapu To: CC: , Pradeep Kumar Chitrapu , Jeff Johnson Subject: [PATCH V7 5/9] wifi: ath12k: fix TX and RX MCS rate configurations in HE mode Date: Wed, 12 Jun 2024 16:42:05 -0700 Message-ID: <20240612234209.2324181-6-quic_pradeepc@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240612234209.2324181-1-quic_pradeepc@quicinc.com> References: <20240612234209.2324181-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-Transfer-Encoding: 8bit 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: tUqIZRwdMIVo8f8S5LWEm6Av8bojabbI X-Proofpoint-ORIG-GUID: tUqIZRwdMIVo8f8S5LWEm6Av8bojabbI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-12_11,2024-06-12_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 spamscore=0 mlxscore=0 malwarescore=0 phishscore=0 lowpriorityscore=0 priorityscore=1501 clxscore=1015 mlxlogscore=999 suspectscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406120169 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 d6e1d1398cdb..b51ddf3dc867 100644 --- a/drivers/net/wireless/ath/ath12k/wmi.c +++ b/drivers/net/wireless/ath/ath12k/wmi.c @@ -2137,8 +2137,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 a59091016995..f129a7298842 100644 --- a/drivers/net/wireless/ath/ath12k/wmi.h +++ b/drivers/net/wireless/ath/ath12k/wmi.h @@ -3920,7 +3920,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.34.1