976-ath10k-Limit-available-channels-via-DT-ieee80211-fre.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From bbf0a8af2261bc7ae39b227ff6a1e9f45a008c27 Mon Sep 17 00:00:00 2001
  2. From: Sven Eckelmann <[email protected]>
  3. Date: Mon, 30 Jul 2018 17:31:41 +0200
  4. Subject: [PATCH] ath10k: Limit available channels via DT ieee80211-freq-limit
  5. Tri-band devices (1x 2.4GHz + 2x 5GHz) often incorporate special filters in
  6. the RX and TX path. These filtered channel can in theory still be used by
  7. the hardware but the signal strength is reduced so much that it makes no
  8. sense.
  9. There is already a DT property to limit the available channels but ath10k
  10. has to manually call this functionality to limit the currrently set wiphy
  11. channels further.
  12. Signed-off-by: Sven Eckelmann <[email protected]>
  13. Forwarded: https://patchwork.kernel.org/patch/10549245/
  14. ---
  15. drivers/net/wireless/ath/ath10k/mac.c | 2 ++
  16. 1 file changed, 2 insertions(+)
  17. --- a/drivers/net/wireless/ath/ath10k/mac.c
  18. +++ b/drivers/net/wireless/ath/ath10k/mac.c
  19. @@ -17,6 +17,7 @@
  20. #include "mac.h"
  21. +#include <net/cfg80211.h>
  22. #include <net/mac80211.h>
  23. #include <linux/etherdevice.h>
  24. #include <linux/acpi.h>
  25. @@ -8230,6 +8231,7 @@ int ath10k_mac_register(struct ath10k *a
  26. ar->hw->wiphy->bands[NL80211_BAND_5GHZ] = band;
  27. }
  28. + wiphy_read_of_freq_limits(ar->hw->wiphy);
  29. ath10k_mac_setup_ht_vht_cap(ar);
  30. ar->hw->wiphy->interface_modes =