mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7996: initialize phy txpower
Fixes phy tx power during scan/offchannel if no chanctx was assigned yet. Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -331,6 +331,7 @@ static void __mt7996_init_txpower(struct mt7996_phy *phy,
|
||||
target_power = DIV_ROUND_UP(target_power, 2);
|
||||
chan->max_power = min_t(int, chan->max_reg_power,
|
||||
target_power);
|
||||
phy->txpower = max(phy->txpower, chan->max_power);
|
||||
chan->orig_mpwr = target_power;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user