wifi: rtw89: add function to adjust and restore PLE quota
authorChih-Kang Chang <gary.chang@realtek.com>
Thu, 27 Oct 2022 05:27:03 +0000 (13:27 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 1 Nov 2022 09:26:13 +0000 (11:26 +0200)
commit7a68ec3da79ea702fdeeb94c31f743fd37446a32
tree9730a319e04a3adfeb8d6b2b8678490b8d4d1721
parent5f05bdb0a770b5d03d3453c0b0743bb3dcd1a2ba
wifi: rtw89: add function to adjust and restore PLE quota

PLE RX quota, which is the setting of RX buffer, is needed to be adjusted
dynamically for WoWLAN mode, and restored when back to normal mode.
The action is not needed for rtw8852c chip.

Signed-off-by: Chih-Kang Chang <gary.chang@realtek.com>
Signed-off-by: Chin-Yen Lee <timlee@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221027052707.14605-4-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/mac.c
drivers/net/wireless/realtek/rtw89/mac.h
drivers/net/wireless/realtek/rtw89/rtw8852a.c