]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtl8xxxu: 8188f: Limit TX power index
authorMartin Kaistra <martin.kaistra@linutronix.de>
Mon, 24 Jun 2024 14:00:37 +0000 (16:00 +0200)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 27 Jun 2024 01:56:15 +0000 (09:56 +0800)
commitd0b4b8ef083ca46d5d318e66a30fb80e0abbb90d
treec8fbd96a3b688b646ee73cf80726afefe3063c8d
parent2f35712ab82683554c660bc2456f05785835efbe
wifi: rtl8xxxu: 8188f: Limit TX power index

TX power index is read from the efuse on init, the values get written to
the TX power registers when the channel gets switched.

When the chip has not yet been calibrated, the efuse values are 0xFF,
which on some boards leads to USB timeouts for reading/writing registers
after the first frames have been sent.

The vendor driver (v5.11.5-1) checks for these invalid values and sets
default values instead. Implement something similar in
rtl8188fu_parse_efuse().

Fixes: c888183b21f3 ("wifi: rtl8xxxu: Support new chip RTL8188FU")
Signed-off-by: Martin Kaistra <martin.kaistra@linutronix.de>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240624140037.231657-1-martin.kaistra@linutronix.de
drivers/net/wireless/realtek/rtl8xxxu/8188f.c