Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtw88: raise LPS threshold to 50, for less power consumption

The LPS threshold was set to 2, means driver will leave LPS
mode if there is more than 2 frames TX/RX for every 2 seconds.
This makes driver enter/leave LPS frequently even if we just
"ping -i1" to the others.

Apparently we do not want to leave LPS mode if there is only
some background traffics or web surfing. By experiment, set
this to 50 is a more reasonable value to lower the over all
power consumption.

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Yan-Hsuan Chuang and committed by
Kalle Valo
bf9840cc ea7ad5f1

+1 -1
+1 -1
drivers/net/wireless/realtek/rtw88/ps.h
··· 5 5 #ifndef __RTW_PS_H_ 6 6 #define __RTW_PS_H_ 7 7 8 - #define RTW_LPS_THRESHOLD 2 8 + #define RTW_LPS_THRESHOLD 50 9 9 10 10 #define POWER_MODE_ACK BIT(6) 11 11 #define POWER_MODE_PG BIT(4)