wifi: rtw89: scan abort when assign/unassign_vif
authorChih-Kang Chang <gary.chang@realtek.com>
Tue, 10 Jun 2025 13:00:34 +0000 (21:00 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 16 Jun 2025 05:37:34 +0000 (13:37 +0800)
commit3db8563bac6c34018cbb96b14549a95c368b0304
treec91c612df3c96d282a2047859ce7bf60d5f06d85
parentb470b8951983cf726844c2287947ff2550fd4f67
wifi: rtw89: scan abort when assign/unassign_vif

If scan happen during start_ap, the register which control TX might be
turned off during scan. Additionally, if set_channel occurs during scan
will backup this register and set to firmware after set_channel done.
When scan complete, firmware will also set TX by this register, causing
TX to be disabled and beacon can't be TX. Therefore, in assign/unassign_vif
call scan abort before set_channel to avoid scan racing with set_channel.

Signed-off-by: Chih-Kang Chang <gary.chang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250610130034.14692-13-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/chan.c