]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: move rtw_enter_ips() to the last when config
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 5 Feb 2020 07:08:55 +0000 (15:08 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 12 Feb 2020 16:18:27 +0000 (18:18 +0200)
commit093ca10799928f09ee3fbce74f2c5e1e70841619
tree2861336ce713f1a24d9759cd0143bb4d3938551d
parent806d3481737ac17318bb39c66840140cdb203b51
rtw88: move rtw_enter_ips() to the last when config

When driver is coming up, mac80211 will set changed as ~0 (0xffffffff),
and driver could enter IDLE state (power off) before switching channel or
other config event. So move rtw_enter_ips() to the last, to make sure the
driver completed the config events before going to IDLE state.

So, moves leave/enter IPS config to be first/last one according to flag
IEEE80211_CONF_IDLE. If there're more configureations we want to add in
the future, they must locate between leave/enter IPS.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Reviewed-by: Chris Chiu <chiu@endlessm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/mac80211.c