2
0

001-12-v6.9-wifi-rtl8xxxu-support-multiple-interfaces-in-configu.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. From 6b76638287055791e74b32c401a39ea1b91e7158 Mon Sep 17 00:00:00 2001
  2. From: Martin Kaistra <[email protected]>
  3. Date: Fri, 22 Dec 2023 11:14:33 +0100
  4. Subject: [PATCH 12/21] wifi: rtl8xxxu: support multiple interfaces in
  5. configure_filter()
  6. As we only want to support AP mode/sending beacons on port 0, change
  7. from priv->vif to priv->vifs[0] in the check for AP mode.
  8. Additionally, if we are in AP mode, don't filter RX beacon and probe
  9. response frames to still allow working STATION mode on the other
  10. interface.
  11. Signed-off-by: Martin Kaistra <[email protected]>
  12. Reviewed-by: Ping-Ke Shih <[email protected]>
  13. Signed-off-by: Kalle Valo <[email protected]>
  14. Link: https://msgid.link/[email protected]
  15. ---
  16. drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 4 ++--
  17. 1 file changed, 2 insertions(+), 2 deletions(-)
  18. --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
  19. +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
  20. @@ -6794,8 +6794,8 @@ static void rtl8xxxu_configure_filter(st
  21. else
  22. rcr |= RCR_CHECK_BSSID_BEACON | RCR_CHECK_BSSID_MATCH;
  23. - if (priv->vif && priv->vif->type == NL80211_IFTYPE_AP)
  24. - rcr &= ~RCR_CHECK_BSSID_MATCH;
  25. + if (priv->vifs[0] && priv->vifs[0]->type == NL80211_IFTYPE_AP)
  26. + rcr &= ~(RCR_CHECK_BSSID_MATCH | RCR_CHECK_BSSID_BEACON);
  27. if (*total_flags & FIF_CONTROL)
  28. rcr |= RCR_ACCEPT_CTRL_FRAME;