OSDN Git Service

wifi: rtw88: prevent scan abort with other VIFs
authorPo-Hao Huang <phhuang@realtek.com>
Fri, 14 Apr 2023 12:13:12 +0000 (20:13 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 20 Apr 2023 12:33:47 +0000 (15:33 +0300)
commita1b8015da57a783b3ceebd8e114afbe07536bd54
tree37198dc047a2f867f82113a1450280752367ec0b
parent982f4a2004f712ce7aed7f7e69fa64e4c06eee7d
wifi: rtw88: prevent scan abort with other VIFs

Only abort scan with current scanning VIF. If we have more than one
interface, we could call rtw_hw_scan_abort() with the wrong VIF as
input. This avoids potential null pointer being accessed when actually
the other VIF is scanning.

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/20230414121312.17954-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/fw.c
drivers/net/wireless/realtek/rtw88/fw.h
drivers/net/wireless/realtek/rtw88/mac80211.c