]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtw88: fix idle mode flow for hw scan
authorPo-Hao Huang <phhuang@realtek.com>
Fri, 21 Jan 2022 07:08:12 +0000 (15:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:57:59 +0000 (13:57 +0200)
commit2dbd48fd5d19d37616455631bf76869c88f8598b
tree57262d4b7467fa5077ed497fa76f70513b334c57
parent487e8f68ae101bdfa708aacab58c3598e04ce9bd
rtw88: fix idle mode flow for hw scan

[ Upstream commit c17f27167b4cb4988ae035fb8dce0c314e9de155 ]

Upon hw scan completion, idle mode is not re-entered. This might
increase power consumption under no link mode. Fix this by adding the
re-enter flow. We need another work for this since enter_ips waits
for c2h_work to finish, which might lead to deadlock if caller is in
the same work.

Fixes: 10d162b2ed39 ("rtw88: 8822c: add ieee80211_ops::hw_scan")
Signed-off-by: Po-Hao Huang <phhuang@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/20220121070813.9656-3-pkshih@realtek.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/realtek/rtw88/fw.c
drivers/net/wireless/realtek/rtw88/mac80211.c
drivers/net/wireless/realtek/rtw88/main.c
drivers/net/wireless/realtek/rtw88/main.h