mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
wifi: rtw88: prohibit enter IPS during HW scan
Mac80211 core may ask driver to change to idle mode during HW scan, then H2C command for HW scan will send failed since chip is in idle mode. Therefore, We check the SCANNING flag before entering IPS to prevent this behavior. Signed-off-by: Chih-Kang Chang <gary.chang@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/20220809084107.38137-8-pkshih@realtek.com
This commit is contained in:
parent
6bf3a08340
commit
7dad3e39fd
1 changed files with 2 additions and 1 deletions
|
@ -101,7 +101,8 @@ static int rtw_ops_config(struct ieee80211_hw *hw, u32 changed)
|
|||
rtw_set_channel(rtwdev);
|
||||
|
||||
if ((changed & IEEE80211_CONF_CHANGE_IDLE) &&
|
||||
(hw->conf.flags & IEEE80211_CONF_IDLE))
|
||||
(hw->conf.flags & IEEE80211_CONF_IDLE) &&
|
||||
!test_bit(RTW_FLAG_SCANNING, rtwdev->flags))
|
||||
rtw_enter_ips(rtwdev);
|
||||
|
||||
out:
|
||||
|
|
Loading…
Reference in a new issue