160a71adc74897e5312cc5c0a0d637ff9d3817cb
[openwrt/staging/ansuel.git] /
1 From a047e46a7b98de384a158b25a05dc09aa7d70c5f Mon Sep 17 00:00:00 2001
2 From: Martin Kaistra <martin.kaistra@linutronix.de>
3 Date: Fri, 22 Dec 2023 11:14:25 +0100
4 Subject: [PATCH 04/21] wifi: rtl8xxxu: 8188e: convert usage of priv->vif to
5 priv->vifs[0]
6
7 The driver currently does not support AP or concurrent mode for 8188e,
8 so just use priv->vifs[0] instead of priv->vif for now.
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-5-martin.kaistra@linutronix.de
14 ---
15 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
19 +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
20 @@ -1699,7 +1699,7 @@ void rtl8188e_handle_ra_tx_report2(struc
21 /* We only use macid 0, so only the first item is relevant.
22 * AP mode will use more of them if it's ever implemented.
23 */
24 - if (!priv->vif || priv->vif->type == NL80211_IFTYPE_STATION)
25 + if (!priv->vifs[0] || priv->vifs[0]->type == NL80211_IFTYPE_STATION)
26 items = 1;
27
28 for (macid = 0; macid < items; macid++) {