mac80211: rtl8xxxu: sync with linux-next 20240229
[openwrt/staging/mans0n.git] / package / kernel / mac80211 / patches / rtl / 001-11-v6.9-wifi-rtl8xxxu-support-multiple-interfaces-in-update_.patch
1 From 05b22e9b7d84253f765cde01cb09d144094b61c9 Mon Sep 17 00:00:00 2001
2 From: Martin Kaistra <martin.kaistra@linutronix.de>
3 Date: Fri, 22 Dec 2023 11:14:32 +0100
4 Subject: [PATCH 11/21] wifi: rtl8xxxu: support multiple interfaces in
5 update_beacon_work_callback()
6
7 As we only want to support AP mode/sending beacons on port 0, it is
8 enough to replace priv->vif with priv->vifs[0].
9
10 Signed-off-by: Martin Kaistra <martin.kaistra@linutronix.de>
11 Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
12 Signed-off-by: Kalle Valo <kvalo@kernel.org>
13 Link: https://msgid.link/20231222101442.626837-12-martin.kaistra@linutronix.de
14 ---
15 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
19 +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
20 @@ -5712,7 +5712,7 @@ static void rtl8xxxu_update_beacon_work_
21 struct rtl8xxxu_priv *priv =
22 container_of(work, struct rtl8xxxu_priv, update_beacon_work);
23 struct ieee80211_hw *hw = priv->hw;
24 - struct ieee80211_vif *vif = priv->vif;
25 + struct ieee80211_vif *vif = priv->vifs[0];
26
27 if (!vif) {
28 WARN_ONCE(true, "no vif to update beacon\n");