wifi: rtw89: fix SER L1 might stop entering LPS issue
authorChih-Kang Chang <gary.chang@realtek.com>
Fri, 24 Feb 2023 08:21:17 +0000 (16:21 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 6 Mar 2023 10:05:59 +0000 (12:05 +0200)
commit5c48f9432d06bf85ca934d7c4ecb14a7ec0c7f5d
tree9e77103b646b4d15d49c722935bcd2747133dcdd
parent1d5003d05f983eee28756896328e4949d9a97b7f
wifi: rtw89: fix SER L1 might stop entering LPS issue

When SER L1 triggered, driver need to stop Rx and clear RTW89_FLAG_RUNNING
flag. If track_work check RTW89_FLAG_RUNNING simultaneously, it will check
failed and never queue track_work again, and LPS won't enter either.
Therefore, we cancel delayed work when enter SER L1, and queue delayed work
when leave SER L1.

Signed-off-by: Chih-Kang Chang <gary.chang@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/20230224082117.21241-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/ser.c