mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7615: fix max wtbl size for 7663
Current mt7663 offload firmware can support up to 32 wtbl entries
Fixes: f40ac0f3d3c0 ("mt76: mt7615: introduce mt7663e support")
Co-developed-by: Sean Wang <[email protected]>
Signed-off-by: Sean Wang <[email protected]>
Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
facf74fd50
commit
e910787a98
+10
-1
@@ -12,8 +12,9 @@
|
||||
|
||||
#define MT7615_MAX_INTERFACES 4
|
||||
#define MT7615_MAX_WMM_SETS 4
|
||||
#define MT7663_WTBL_SIZE 32
|
||||
#define MT7615_WTBL_SIZE 128
|
||||
#define MT7615_WTBL_RESERVED (MT7615_WTBL_SIZE - 1)
|
||||
#define MT7615_WTBL_RESERVED (mt7615_wtbl_size(dev) - 1)
|
||||
#define MT7615_WTBL_STA (MT7615_WTBL_RESERVED - \
|
||||
MT7615_MAX_INTERFACES)
|
||||
|
||||
@@ -424,6 +425,14 @@ static inline bool mt7615_firmware_offload(struct mt7615_dev *dev)
|
||||
return dev->fw_ver > MT7615_FIRMWARE_V2;
|
||||
}
|
||||
|
||||
static inline u16 mt7615_wtbl_size(struct mt7615_dev *dev)
|
||||
{
|
||||
if (is_mt7663(&dev->mt76) && mt7615_firmware_offload(dev))
|
||||
return MT7663_WTBL_SIZE;
|
||||
else
|
||||
return MT7615_WTBL_SIZE;
|
||||
}
|
||||
|
||||
void mt7615_scan_work(struct work_struct *work);
|
||||
void mt7615_ps_work(struct work_struct *work);
|
||||
void mt7615_init_txpower(struct mt7615_dev *dev,
|
||||
|
||||
Reference in New Issue
Block a user