wifi: rtw88: prohibit enter IPS during HW scan
authorChih-Kang Chang <gary.chang@realtek.com>
Tue, 9 Aug 2022 08:41:07 +0000 (16:41 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 10 Aug 2022 05:48:47 +0000 (08:48 +0300)
commit7dad3e39fde1eef97bc1a0b92e5d0f3500c9ed56
tree62c1c004285feac7944011cec584794d719e349e
parent6bf3a083407b5d404d70efc3a5ac75b472e5efa9
wifi: rtw88: prohibit enter IPS during HW scan

Mac80211 core may ask driver to change to idle mode during HW scan,
then H2C command for HW scan will send failed since chip is in idle
mode. Therefore, We check the SCANNING flag before entering IPS to
prevent this behavior.

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