mt76x2: convert between per-chain tx power and combined output
authorFelix Fietkau <nbd@nbd.name>
Thu, 14 Dec 2017 15:39:12 +0000 (16:39 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Jan 2018 17:25:51 +0000 (19:25 +0200)
commit53aa29b274bae1d46bda2435e736d335078ae9de
tree2458d496779cacb0feea8cb81e8e19851bf1d01e
parent984ea50324ec6bad2a04ac7869dfc428f80b8bee
mt76x2: convert between per-chain tx power and combined output

Using both chains adds max. 3 dBm. A similar worst-case calculation is
being used in ath9k as well to ensure that the hardware stays within
regulatory limits

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/mt76x2_init.c
drivers/net/wireless/mediatek/mt76/mt76x2_main.c