From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 F1CBF215799; Thu, 12 Dec 2024 17:17:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734023861; cv=none; b=P6NCzkMd8eKuVygnd5Eae1sgH87u53bSnt1V8iQS95fOL+JuaL6s86dJD/KdLGr38nqkrKHJAYP7we5oj2HwJ9Y3lVnBsRbcZLkPn3vY6vY07++4gjY+EVoaJh38TkrHNa+A9q2fOZZPGp4NzSNfaQBcU5SKEDk+z1Af6bFTzso= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734023861; c=relaxed/simple; bh=vbv4t2Xi3cZOrX0I1jso66QxUYoxvF8Rp+doh21tbAg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=d42bpP/njicZubiLoxk5d113c6KSezMUGfUjnh3sQbgwfxSbvNAB0EIaPNleYAzKMcNZqrjN2eMGC4OSVGWrA6j+QoT/LvYzlZyoqPIOglLJuy7NNk1EccOZ5jeUDJIIDmMQ+8yp+1A5L4A5cjLN6OIW3dNLOSczYgiBNfjMrr4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YXH1LBBV; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="YXH1LBBV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3EA47C4CED0; Thu, 12 Dec 2024 17:17:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1734023860; bh=vbv4t2Xi3cZOrX0I1jso66QxUYoxvF8Rp+doh21tbAg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YXH1LBBVbtlEcKnRQnn3Y22Ho2rOVac+LTsiN1QEFPYeiOoLUVYmJs6QFDzJXbN5R g9ruCr20fKv0XnkAuJwJUODQgLd5fq5Eke2DlX47xPmi8r0XdmBSRtRsLKZ3henLa4 WTvAfp8htTrMywriFODgaqOdZ3pm9x4sXEiKDqiE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Paul Menzel , Baochen Qiang , Jeff Johnson , Kalle Valo , Sasha Levin Subject: [PATCH 5.10 106/459] wifi: ath10k: fix invalid VHT parameters in supported_vht_mcs_rate_nss1 Date: Thu, 12 Dec 2024 15:57:24 +0100 Message-ID: <20241212144257.698992941@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241212144253.511169641@linuxfoundation.org> References: <20241212144253.511169641@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Baochen Qiang [ Upstream commit d50886b27850447d90c0cd40c725238097909d1e ] In supported_vht_mcs_rate_nss1, the rate for MCS9 & VHT20 is defined as {780, 867}, this does not align with firmware's definition and therefore fails the verification in ath10k_mac_get_rate_flags_vht(): invalid vht params rate 960 100kbps nss 1 mcs 9 Change it to {865, 960} to align with firmware, so this issue could be fixed. Since ath10k_hw_params::supports_peer_stats_info is enabled only for QCA6174, this change does not affect other chips. Tested-on: QCA6174 hw3.2 PCI WLAN.RM.4.4.1-00309-QCARMSWPZ-1 Fixes: 3344b99d69ab ("ath10k: add bitrate parse for peer stats info") Reported-by: Paul Menzel Closes: https://lore.kernel.org/lkml/fba24cd3-4a1e-4072-8585-8402272788ff@molgen.mpg.de/ Signed-off-by: Baochen Qiang Acked-by: Jeff Johnson Signed-off-by: Kalle Valo Link: https://patch.msgid.link/20240711020344.98040-2-quic_bqiang@quicinc.com Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath10k/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 15f02bf23e9bd..2bf3e66c83f63 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -8955,7 +8955,7 @@ static const struct ath10k_index_vht_data_rate_type supported_vht_mcs_rate_nss1[ {6, {2633, 2925}, {1215, 1350}, {585, 650} }, {7, {2925, 3250}, {1350, 1500}, {650, 722} }, {8, {3510, 3900}, {1620, 1800}, {780, 867} }, - {9, {3900, 4333}, {1800, 2000}, {780, 867} } + {9, {3900, 4333}, {1800, 2000}, {865, 960} } }; /*MCS parameters with Nss = 2 */ -- 2.43.0