wifi: rtw89: prohibit enter IPS during HW scan
authorChih-Kang Chang <gary.chang@realtek.com>
Sat, 15 Apr 2023 03:48:55 +0000 (11:48 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 17 Apr 2023 09:49:51 +0000 (12:49 +0300)
commite579e943bac3b52f69a25738fcbd8be945f72689
tree1d2474280410e83a1e1ba6ea624bb142e7edab7d
parentc0fea064b2647a5069e2c234fb44286c8a205993
wifi: rtw89: 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/20230415034900.15679-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/mac80211.c