rtw88: leave PS state for dynamic mechanism
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Wed, 2 Oct 2019 02:31:23 +0000 (10:31 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 2 Oct 2019 04:33:45 +0000 (07:33 +0300)
commit37ba5de2e731afbfe606d7192a8aeba625abdaba
tree087bc8b2ff6a9a95d0e4ec7870575cc6557c6170
parentd3e20fd17d0b6891a3b6f598abad38da2ab6a70f
rtw88: leave PS state for dynamic mechanism

Dynamic mechanism requires BB/RF working to adjust
hardware settings. But PS state periodically turns
off BB/RF, could lead to wrong setting.

So leave PS state before DM to make sure it works.
And then check if we can enter PS state again.

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/main.c