]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: rtw88: add flag check before enter or leave IPS
authorChih-Kang Chang <gary.chang@realtek.com>
Tue, 9 Aug 2022 08:41:06 +0000 (16:41 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 10 Aug 2022 05:48:46 +0000 (08:48 +0300)
commit10edebf7ce47609f12253cef7903748995923cdd
tree386a5453c9db6ad727e877d5a35549d8ea634bef
parentf4aa88364b460b4a827d3e107677fb4c12514d96
wifi: rtw88: add flag check before enter or leave IPS

Enter or leave IPS controlled by mac80211 before driver support HW
scan. After support HW scan, driver need to control IPS before start
HW scan and scan complete, but mac80211 also ask driver enter or leave
IPS. Therefore, we add flag check in IPS to prevent entering or
leaving IPS twice.

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/20220809084107.38137-7-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/ps.c