mt76: add mt76x02_phy_set_txpower utility routine

Add mt76x02_phy_set_txpower utility routine in mt76x02_phy.c
in order to be reused in mt76x0 tx power management code.
Moreover move following routines in mt76x02-lib module:
- mt76x02_tx_power_mask
- mt76x02_get_max_rate_power
- mt76x02_limit_rate_power
- mt76x02_add_rate_power_offset

Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Lorenzo Bianconi
2018-09-26 22:04:27 +02:00
committed by Felix Fietkau
parent f802bd5f14
commit 2214aa5a24
7 changed files with 133 additions and 69 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ mt76-y := \
mt76-usb-y := usb.o usb_trace.o usb_mcu.o
mt76x02-lib-y := mt76x02_util.o mt76x02_mac.o mt76x02_mcu.o \
mt76x02_eeprom.o
mt76x02_eeprom.o mt76x02_phy.o
mt76x02-usb-y := mt76x02_usb_mcu.o mt76x02_usb_core.o