rtw89: change idle mode condition during hw_scan
authorPo Hao Huang <phhuang@realtek.com>
Fri, 1 Apr 2022 05:50:40 +0000 (13:50 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 6 Apr 2022 08:56:33 +0000 (11:56 +0300)
commitee20d538c4989daddd383b6a89129a2b514580e6
tree6638942a0353b04d4f467003ff9ef714ff3e6423
parent9fb4862e913ceb5f6e668033c214e07eca7ee18a
rtw89: change idle mode condition during hw_scan

Previously we only consider single interface's status, idle mode
behavior could be unexpected when multiple interfaces is active.
Change to enter/leave idle mode by mac80211's configuration state.

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/20220401055043.12512-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c