mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7915: fix EEPROM offset of TSSI flag on MT7981
The offset of the TSSI flag on the EEPROM of MT7981 devices was wrong.
Set the correct offset instead.
Fixes: 6bad146d162e ("wifi: mt76: mt7915: add support for MT7981")
Signed-off-by: StanleyYP Wang <[email protected]>
Signed-off-by: Daniel Golle <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
0dfcc53a8e
commit
30c54a53bf
+2
-1
@@ -144,7 +144,8 @@ static inline bool
|
||||
mt7915_tssi_enabled(struct mt7915_dev *dev, enum nl80211_band band)
|
||||
{
|
||||
u8 *eep = dev->mt76.eeprom.data;
|
||||
u8 val = eep[MT_EE_WIFI_CONF + 7];
|
||||
u8 offs = is_mt7981(&dev->mt76) ? 8 : 7;
|
||||
u8 val = eep[MT_EE_WIFI_CONF + offs];
|
||||
|
||||
if (band == NL80211_BAND_2GHZ)
|
||||
return val & MT_EE_WIFI_CONF7_TSSI0_2G;
|
||||
|
||||
Reference in New Issue
Block a user