Search Linux Wireless

Re: [PATCH V2] wifi: rt2x00: limit MT7620 TX power based on eeprom calibration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Shiji Yang <yangshiji66@xxxxxxxxxxx> wrote:

> In the vendor driver, the current channel power is queried from
> EEPROM_TXPOWER_BG1 and EEPROM_TXPOWER_BG2. And then the mixed value
> will be written into the low half-word of the TX_ALC_CFG_0 register.
> The high half-word of the TX_ALC_CFG_0 is a fixed value 0x2f2f.
> 
> We can't get the accurate TX power. Based on my tests and the new
> MediaTek mt76 driver source code, the real TX power is approximately
> equal to channel_power + (max) rate_power. Usually max rate_power is
> the gain of the OFDM 6M rate, which can be readed from the offset
> EEPROM_TXPOWER_BYRATE +1.
> 
> Based on these eeprom values, this patch adds basic TX power control
> for the MT7620 and limits its maximum TX power. This can avoid the
> link speed decrease caused by chip overheating. rt2800_config_alc()
> function has also been renamed to rt2800_config_alc_rt6352() because
> it's only used by RT6352 (MT7620).
> 
> Notice:
> It's still need some work to sync the max channel power to the user
> interface. This part is missing from the rt2x00 driver framework. If
> we set the power exceed the calibration value, it won't take effect.
> 
> Signed-off-by: Shiji Yang <yangshiji66@xxxxxxxxxxx>
> Acked-by: Stanislaw Gruszka <stf_xl@xxxxx>

Patch applied to wireless-next.git, thanks.

821b5192c955 wifi: rt2x00: limit MT7620 TX power based on eeprom calibration

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/TYAP286MB03159090ED14044215E59FD6BC10A@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux