Commit f71230e6 authored by Sven Eckelmann's avatar Sven Eckelmann Committed by Greg Kroah-Hartman

ath10k: limit available channels via DT ieee80211-freq-limit

[ Upstream commit 34d5629d ]

Tri-band devices (1x 2.4GHz + 2x 5GHz) often incorporate special filters in
the RX and TX path. These filtered channel can in theory still be used by
the hardware but the signal strength is reduced so much that it makes no
sense.

There is already a DT property to limit the available channels but ath10k
has to manually call this functionality to limit the currrently set wiphy
channels further.
Signed-off-by: default avatarSven Eckelmann <sven.eckelmann@openmesh.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8cad5d80
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include "mac.h" #include "mac.h"
#include <net/cfg80211.h>
#include <net/mac80211.h> #include <net/mac80211.h>
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
#include <linux/acpi.h> #include <linux/acpi.h>
...@@ -8363,6 +8364,7 @@ int ath10k_mac_register(struct ath10k *ar) ...@@ -8363,6 +8364,7 @@ int ath10k_mac_register(struct ath10k *ar)
ar->hw->wiphy->bands[NL80211_BAND_5GHZ] = band; ar->hw->wiphy->bands[NL80211_BAND_5GHZ] = band;
} }
wiphy_read_of_freq_limits(ar->hw->wiphy);
ath10k_mac_setup_ht_vht_cap(ar); ath10k_mac_setup_ht_vht_cap(ar);
ar->hw->wiphy->interface_modes = ar->hw->wiphy->interface_modes =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment