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 A8905238C1E; Tue, 17 Jun 2025 16:00:18 +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=1750176018; cv=none; b=RzrmjVovvoiBTCNoZPBdErlyLant9ROFEZPXuckiGXbd4cVl9R2w79Zrb1pxqpGY3dLsFQGBmuK30vzhWLNdo8XKyl1mHwuNOl/jCv0MMdxeR4+fUxRMXjTrJAQfkt/rnkpRNyMHVrbtaBQMcf+2M4+tBlRdrXjJddkQG5iBxuw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750176018; c=relaxed/simple; bh=ySDgh8fMhDF9DWnx8HniqqFRhIE31xVgp+Dx0wWcyRw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bv+UYD3+YLHWd9heZeofFkspVhFBFLFyCt8V6KVQutwzJlMwh8Ta2pWpvOtkApMhgdR3PeVimqzJGbwm/x58a92DLWmcIAyb4cAl0+Cp2hjB9RAFDAFhGREeUUkCB6pkrN4ZyOieyt2nkbAOiqPxUI1rGFgW1mXWpw0OkU/UfyA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=s314YIEY; 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="s314YIEY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 117F3C4CEE7; Tue, 17 Jun 2025 16:00:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750176018; bh=ySDgh8fMhDF9DWnx8HniqqFRhIE31xVgp+Dx0wWcyRw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s314YIEY3bPgLU5UVHzdQv2c+ukWbh+ZFxWHyiSIDU6lO6Lj4/OyBNLzCOeiOdanu M0zScxQqSTlXE2sr69YNhvj1a6XViizrbeyYobomDFNscea7Y2YfnYNivhoyHO1cXF aZQgb8wRhlZgrf1fUVcgENCp2Q+mY4BUimNqQjCY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Peter Chiu , Shayne Chen , Felix Fietkau , Sasha Levin Subject: [PATCH 6.12 188/512] wifi: mt76: mt7996: set EHT max ampdu length capability Date: Tue, 17 Jun 2025 17:22:34 +0200 Message-ID: <20250617152427.259254294@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250617152419.512865572@linuxfoundation.org> References: <20250617152419.512865572@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Peter Chiu [ Upstream commit 8b2f574845e33d02e7fbad2d3192a8b717567afa ] Set the max AMPDU length in the EHT MAC CAP. Without this patch, the peer station cannot obtain the correct capability, which prevents achieving peak throughput on the 2 GHz band. Fixes: 1816ad9381e0 ("wifi: mt76: mt7996: add max mpdu len capability") Signed-off-by: Peter Chiu Signed-off-by: Shayne Chen Link: https://patch.msgid.link/20250515032952.1653494-3-shayne.chen@mediatek.com Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7996/init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/init.c b/drivers/net/wireless/mediatek/mt76/mt7996/init.c index d8a013812d1e3..c550385541143 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7996/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7996/init.c @@ -1193,6 +1193,9 @@ mt7996_init_eht_caps(struct mt7996_phy *phy, enum nl80211_band band, u8_encode_bits(IEEE80211_EHT_MAC_CAP0_MAX_MPDU_LEN_11454, IEEE80211_EHT_MAC_CAP0_MAX_MPDU_LEN_MASK); + eht_cap_elem->mac_cap_info[1] |= + IEEE80211_EHT_MAC_CAP1_MAX_AMPDU_LEN_MASK; + eht_cap_elem->phy_cap_info[0] = IEEE80211_EHT_PHY_CAP0_NDP_4_EHT_LFT_32_GI | IEEE80211_EHT_PHY_CAP0_SU_BEAMFORMER | -- 2.39.5