wifi: rtl8xxxu: enable channel switch support
authorMartin Kaistra <martin.kaistra@linutronix.de>
Thu, 11 Jan 2024 16:36:28 +0000 (17:36 +0100)
committerKalle Valo <kvalo@kernel.org>
Sun, 14 Jan 2024 19:08:02 +0000 (21:08 +0200)
commitece90a8622320bf5a24d3326da1f8e109891573c
tree165fe32a38bd92fb68c490935026615e011cf0a5
parent1213acb478a7181cd73eeaf00db430f1e45b1361
wifi: rtl8xxxu: enable channel switch support

The CSA countdown in the beacon frames, which are sent out by firmware,
needs to get updated by the driver. To achieve this, convert
update_beacon_work to delayed_work and schedule it with the beacon
interval in case CSA is active and the countdown is not complete.

Signed-off-by: Martin Kaistra <martin.kaistra@linutronix.de>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240111163628.320697-3-martin.kaistra@linutronix.de
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c