mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7996: fix max nss value when getting rx chainmask
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 <[email protected]>
Signed-off-by: Shayne Chen <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
1b438ebe0d
commit
7519fa4ce6
+1
-1
@@ -786,7 +786,7 @@ void mt7996_memcpy_fromio(struct mt7996_dev *dev, void *buf, u32 offset,
|
||||
|
||||
static inline u16 mt7996_rx_chainmask(struct mt7996_phy *phy)
|
||||
{
|
||||
int max_nss = hweight8(phy->mt76->hw->wiphy->available_antennas_tx);
|
||||
int max_nss = hweight16(phy->orig_antenna_mask);
|
||||
int cur_nss = hweight8(phy->mt76->antenna_mask);
|
||||
u16 tx_chainmask = phy->mt76->chainmask;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user