rtw88: change idle mode condition during hw_scan
authorPo-Hao Huang <phhuang@realtek.com>
Fri, 18 Mar 2022 03:43:16 +0000 (11:43 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 6 Apr 2022 07:45:05 +0000 (10:45 +0300)
commit29ed2d7606bb674c9ee38f59ca5b155aaea72df3
tree6c36d83aed6e5aa88c545923d7e0ec9bd2aca22e
parentc5f675748cf0e1db5ba5514e1f34360dfb95a6ba
rtw88: 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/20220318034316.40720-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/main.c