wifi: rtw89: add support for negative values of dBm to linear conversion

Enhanced the dBm to linear conversion function to accommodate negative
dBm values and improved the precision from 1 dBm to 0.25 dBm.

Signed-off-by: Kuan-Chung Chen <damon.chen@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250306021144.12854-2-pkshih@realtek.com
This commit is contained in:
Kuan-Chung Chen 2025-03-06 10:11:40 +08:00 • committed by Ping-Ke Shih
commit 3df4583ae0
3 changed files with 137 additions and 92 deletions