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:
Felix Fietkau
2025-01-03 11:00:16 +01:00
parent 46715044ec
commit 959a2d4000
+1
View File
@@ -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;
}
}