]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtw89: add crystal_cap check to avoid setting as overflow value
authorChih-Kang Chang <gary.chang@realtek.com>
Thu, 28 Nov 2024 05:54:33 +0000 (13:54 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 5 Dec 2024 06:28:30 +0000 (14:28 +0800)
commit7b98caea39676561f22db58752551161bb36462b
treee7f59702c7f88c5af9917b2a4f3a0d8a35714ee1
parent148cd1e184cf3f19c17f8596c8f3f1a3b447edd6
wifi: rtw89: add crystal_cap check to avoid setting as overflow value

In the original flow, the crystal_cap might be calculated as a negative
value and set as an overflow value. Therefore, we added a check to limit
the calculated crystal_cap value. Additionally, we shrank the crystal_cap
adjustment according to specific CFO.

Signed-off-by: Chih-Kang Chang <gary.chang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20241128055433.11851-7-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/phy.c
drivers/net/wireless/realtek/rtw89/phy.h