]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mt76: mt7996: set link_valid field when initializing wcid
authorShayne Chen <shayne.chen@mediatek.com>
Thu, 6 Nov 2025 06:41:58 +0000 (14:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:14 +0000 (14:03 +0100)
commite5c42efeb162c56e25f53c51ec31ee54691667f2
treed696559ed54b0400aefe48b468c7820f28881dfc
parentd64e6f27260eef3df49c5c3950494b6e9d36caad
wifi: mt76: mt7996: set link_valid field when initializing wcid

[ Upstream commit 7eaea3a8ba1e9bb58f87e3030f6ce18537e57e1f ]

This ensures the upper layer uses the correct link ID during packet
processing.

Fixes: dd82a9e02c05 ("wifi: mt76: mt7996: Rely on mt7996_sta_link in sta_add/sta_remove callbacks")
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20251106064203.1000505-7-shayne.chen@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7996/main.c