]> git.baikalelectronics.ru Git - kernel.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)
committerKalle Valo <kvalo@kernel.org>
Mon, 31 Jan 2022 15:46:59 +0000 (17:46 +0200)
commit49a1b6cadc32c7444245d31eb1a2139631ac4fa2
tree1fa2c59e89f5ccb3cd429feabb557cbb07da5051
parent235ea7352ed262b93faaab6dc4c6a61b18da77dd
rtw88: fix idle mode flow for hw scan

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: 9c973b6628b5 ("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
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