Skip to content

Commit 7dad3e3

Browse files
Chih-Kang ChangKalle Valo
authored andcommitted
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 <[email protected]> Signed-off-by: Ping-Ke Shih <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 6bf3a08 commit 7dad3e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/wireless/realtek/rtw88/mac80211.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ static int rtw_ops_config(struct ieee80211_hw *hw, u32 changed)
101101
rtw_set_channel(rtwdev);
102102

103103
if ((changed & IEEE80211_CONF_CHANGE_IDLE) &&
104-
(hw->conf.flags & IEEE80211_CONF_IDLE))
104+
(hw->conf.flags & IEEE80211_CONF_IDLE) &&
105+
!test_bit(RTW_FLAG_SCANNING, rtwdev->flags))
105106
rtw_enter_ips(rtwdev);
106107

107108
out:

0 commit comments

Comments
 (0)