wifi: rtw89: add crystal_cap check to avoid setting as overflow value

[ Upstream commit 7b98caea39 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Chih-Kang Chang 2024-11-28 13:54:33 +08:00 • committed by Greg Kroah-Hartman
commit 9543e67fa3
2 changed files with 7 additions and 6 deletions