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 60CE11519AA; Wed, 5 Feb 2025 14:18:23 +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=1738765103; cv=none; b=JnWPvixRYbD/PtFN3fTAM+QKKmNQw+Q28p13zZiWk5z7br/QU+UOoyVadWHZlhrk/uPom12tBSbJ0ZyqyfE7Ui80f0HUeg4GXARk/4rLSc8ARt32v9FAFpVOrAZCYQIlu/dsJUoZqttCJZMLEPb0OfG2+C8XFGCfSKd7vFJoJrI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738765103; c=relaxed/simple; bh=kKGnngo1EVJIQ2S/OvlJSghuipdycGQVWXXGLyzwY8s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NAGOoDSAPrm9iFUXzI4nL0iINijN4Z8jkbRQjyIX3jvA4bMezW3lltZpAKvX0Uzd28+oXuVZpNJiXGIL1hXCU94QkhNkgSkZq2tX0dPWlAd2CK29mxKIY6jfYCP3WoDws0fPPp+HepZO/JAkKcsNSoT4EdGIS+ak3fCaowgxzNc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=A5QlHCLo; 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="A5QlHCLo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F608C4CED1; Wed, 5 Feb 2025 14:18:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1738765103; bh=kKGnngo1EVJIQ2S/OvlJSghuipdycGQVWXXGLyzwY8s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A5QlHCLo2hWidLr2QTRJB7V6rz4huj8wm6JIZoLQoUx5/NTHttWqJcaws5L110c+9 Xsd1KYhu/gvjIVE5Bz+t2fb9PrPD1zDAifvU8ZtrA0JxfVuokDAhp2PqOjPty6x1BJ oIbN7Vc3A8QW4TYbyAPhDWL9FFJnpA2QC0rA3g/g= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ming Yen Hsieh , Sean Wang , Felix Fietkau , Sasha Levin Subject: [PATCH 6.12 190/590] wifi: mt76: mt7925: Update mt792x_rx_get_wcid for per-link STA Date: Wed, 5 Feb 2025 14:39:05 +0100 Message-ID: <20250205134502.549141897@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250205134455.220373560@linuxfoundation.org> References: <20250205134455.220373560@linuxfoundation.org> User-Agent: quilt/0.68 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 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ming Yen Hsieh [ Upstream commit 90c10286b176421068b136da51ed83059a68e322 ] Update mt792x_rx_get_wcid to support per-link STA. Fixes: 86c051f2c418 ("wifi: mt76: mt7925: enabling MLO when the firmware supports it") Signed-off-by: Ming Yen Hsieh Signed-off-by: Sean Wang Link: https://patch.msgid.link/20241211011926.5002-11-sean.wang@kernel.org Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt792x_mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt792x_mac.c b/drivers/net/wireless/mediatek/mt76/mt792x_mac.c index 106273935b267..05978d9c7b916 100644 --- a/drivers/net/wireless/mediatek/mt76/mt792x_mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt792x_mac.c @@ -153,7 +153,7 @@ struct mt76_wcid *mt792x_rx_get_wcid(struct mt792x_dev *dev, u16 idx, return NULL; link = container_of(wcid, struct mt792x_link_sta, wcid); - sta = container_of(link, struct mt792x_sta, deflink); + sta = link->sta; if (!sta->vif) return NULL; -- 2.39.5