]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mt76: mt7996: fix max nss value when getting rx chainmask
authorStanleyYP Wang <StanleyYP.Wang@mediatek.com>
Thu, 6 Nov 2025 06:41:52 +0000 (14:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:13 +0000 (14:03 +0100)
commit74bb080717a3dc9f26cfc4874c69181910f54042
treef1a133ccb194a684873299445ae916ff01cf8fdc
parent2cde732373a734c1d68f38e83344a49f5f4a2f54
wifi: mt76: mt7996: fix max nss value when getting rx chainmask

[ Upstream commit 361b59b6be7c33c43b619d5cada394efc0f3b398 ]

Since wiphy->available_antennas_tx now accumulates the chainmask of all
the radios of a wiphy, use phy->orig_antenna_mask to get the original
max nss for comparison.

Fixes: 69d54ce7491d ("wifi: mt76: mt7996: switch to single multi-radio wiphy")
Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Link: https://patch.msgid.link/20251106064203.1000505-1-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/mt7996.h