wifi: rtw88: Handle RTL8723D(S) with blank efuse
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Fri, 2 May 2025 11:49:34 +0000 (14:49 +0300)
committerPing-Ke Shih <pkshih@realtek.com>
Sat, 10 May 2025 00:45:13 +0000 (08:45 +0800)
commit2c17afde9ff6713f3e080ed1ea1a4bd7480be9aa
treea7b43448b8951d1c398c0f78597bdccbcee8af14
parent0ffa1ba81b35ba147c9df6206a61499a156b0128
wifi: rtw88: Handle RTL8723D(S) with blank efuse

Some users have RTL8723DS chips with nearly blank efuse. Currently these
chips cannot connect when using rtw88, but they do work using the old
out-of-tree driver.

Use reasonable default values for TX power, antenna configuration, and
crystal cap if the chip's efuse is missing these things.

RTL8723D can use the same default values as RTL8703B, so simply move
the code from rtl8703b_read_efuse() to the shared function
__rtl8723x_read_efuse().

Link: https://github.com/lwfinger/rtw88/issues/157
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/5734afe7-0870-40b2-acd4-5657a02d7c56@gmail.com
drivers/net/wireless/realtek/rtw88/rtw8703b.c
drivers/net/wireless/realtek/rtw88/rtw8723x.c