wifi: rtw89: fix misbehavior of TX beacon in concurrent mode
authorChih-Kang Chang <gary.chang@realtek.com>
Wed, 29 Nov 2023 07:00:46 +0000 (15:00 +0800)
committerKalle Valo <kvalo@kernel.org>
Fri, 1 Dec 2023 12:43:14 +0000 (14:43 +0200)
commit756b31203d482d2dd1aa6c208978b0410dc7530f
treead91ae0871c7d69ac2b7f4bd48cc2401895644f2
parente46987ce819d9c531b3389d487ae135fc54da494
wifi: rtw89: fix misbehavior of TX beacon in concurrent mode

In concurrent mode, when STA interface is scanning, it causes
AP interface TX beacon on wrong channel. We modified it to scan
with the operating channel when one of the interfaces is already
connected. Additionally, STA interface need to stop scan when AP
interface is starting to avoid TX beacon on wrong channel. Finally,
AP interface need to stop TX beacon when STA interface is scanning
and switching to non-OP channel,This prevent other device to get
beacons on wrong channel.

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/20231129070046.18443-5-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/fw.c
drivers/net/wireless/realtek/rtw89/mac.c
drivers/net/wireless/realtek/rtw89/mac.h
drivers/net/wireless/realtek/rtw89/mac80211.c