]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rtw88: Increase the RX gain before scanning
authorMartin Hrůza <martin.hruza123@gmail.com>
Tue, 23 Dec 2025 23:19:00 +0000 (01:19 +0200)
committerPing-Ke Shih <pkshih@realtek.com>
Fri, 26 Dec 2025 04:33:19 +0000 (12:33 +0800)
commit3f90942473d25b3743a95b41af2a24a3fc8f9b79
tree81453fd0c4b7cd5ad7d3a88a63f056865a125a66
parent1b40c1c7571fcf926095ed92f25bd87900bdc8ed
wifi: rtw88: Increase the RX gain before scanning

The driver reduces the RX gain while connected to a network located
close by. In this condition scans return few results because the more
distant networks can't be heard.

Temporarily increase the RX gain before scanning in order to detect
all available networks. Reset the RX gain back to the last recorded
value once the scan finishes.

Link: https://github.com/lwfinger/rtw88/issues/337
Signed-off-by: Martin Hrůza <martin.hruza123@gmail.com>
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/c2e72aff-190d-4f59-9914-2588de756385@gmail.com
drivers/net/wireless/realtek/rtw88/main.c
drivers/net/wireless/realtek/rtw88/phy.c
drivers/net/wireless/realtek/rtw88/phy.h