mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 06:24:53 +08:00
mt76: mt7615: do not use mt7615 single-sku values for mt7663
mt7663 mcu relies on different APIs to configure APIs per-rate power limit respect to mt7615 driver. Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
fb0d90540b
commit
729d3dbd3b
@ -2204,6 +2204,11 @@ static void mt7615_mcu_set_txpower_sku(struct mt7615_phy *phy, u8 *sku)
|
||||
&limits, tx_power);
|
||||
mphy->txpower_cur = tx_power;
|
||||
|
||||
if (is_mt7663(mphy->dev)) {
|
||||
memset(sku, tx_power, MT_SKU_4SS_DELTA + 1);
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < MT_SKU_1SS_DELTA; i++)
|
||||
sku[i] = limits_array[sku_mapping[i]];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user