diff options
author | Martin Kaistra <martin.kaistra@linutronix.de> | 2023-12-22 11:14:32 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2024-01-10 16:52:57 +0200 |
commit | 05b22e9b7d84253f765cde01cb09d144094b61c9 (patch) | |
tree | 0d847e01e6743783c0e3a7269d5c4a6c1bb08904 | |
parent | 43532c050f8eec4056a21978fdb5b958e1477553 (diff) | |
download | linux-stable-05b22e9b7d84253f765cde01cb09d144094b61c9.tar.gz linux-stable-05b22e9b7d84253f765cde01cb09d144094b61c9.tar.bz2 linux-stable-05b22e9b7d84253f765cde01cb09d144094b61c9.zip |
wifi: rtl8xxxu: support multiple interfaces in update_beacon_work_callback()
As we only want to support AP mode/sending beacons on port 0, it is
enough to replace priv->vif with priv->vifs[0].
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/20231222101442.626837-12-martin.kaistra@linutronix.de
-rw-r--r-- | drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 3adbcc4bccb5..aeac40a892ff 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -5712,7 +5712,7 @@ static void rtl8xxxu_update_beacon_work_callback(struct work_struct *work) struct rtl8xxxu_priv *priv = container_of(work, struct rtl8xxxu_priv, update_beacon_work); struct ieee80211_hw *hw = priv->hw; - struct ieee80211_vif *vif = priv->vif; + struct ieee80211_vif *vif = priv->vifs[0]; if (!vif) { WARN_ONCE(true, "no vif to update beacon\n"); |