ath10k: Limit available channels via DT ieee80211-freq-limit
PATCH 1/1 ath10k: Limit available channels via DT ieee80211-freq-limit
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.
--- drivers/net/wireless/ath/ath10k/mac.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/wireless/ath/ath10k/mac.c +2 -0
@@ -18,6 +18,7 @@#include "mac.h" +#include <net/cfg80211.h> #include <net/mac80211.h> #include <linux/etherdevice.h> #include <linux/acpi.h>
@@ -8306,6 +8307,7 @@ int ath10k_mac_register(struct ath10k *ar) ar->hw->wiphy->bands[NL80211_BAND_5GHZ ] = band; } +wiphy_read_of_freq_limits (ar->hw->wiphy);ath10k_mac_setup_ht_vht_cap (ar); ar->hw->wiphy->interface_modes =
Signature · 7 lines
2.11.0 _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
+ Rafał
Quoted 8 lines · Sven Eckelmann
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.
Wondering whether we can call it in wiphy_register() like below. Not sure why we did not explore that with the introduction of it by Rafał. Maybe he remembers. I did not find something in that direction in patchwork, but may have missed it. I know mt76 drops the band reference if it ends up with all channels disabled. Maybe that was the reason.
Regards,
Arend
---
net/wireless/core.c +0 -0
@@ -742,6 +742,8 @@ int wiphy_register(struct wiphy *wiphy)
if (res) return res;
+ wiphy_read_of_freq_limits(wiphy);
+
/* sanity check supported bands/channels */
for (band = 0; band < NUM_NL80211_BANDS; band++) {
u16 types = 0;_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
+ Rafał
Quoted 8 lines · Sven Eckelmann
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.
Wondering whether we can call it in wiphy_register() like below. Not sure why we did not explore that with the introduction of it by Rafał. Maybe he remembers. I did not find something in that direction in patchwork, but may have missed it. I know mt76 drops the band reference if it ends up with all channels disabled. Maybe that was the reason.
Regards,
Arend
---
net/wireless/core.c +0 -0
@@ -742,6 +742,8 @@ int wiphy_register(struct wiphy *wiphy)
if (res) return res;
+ wiphy_read_of_freq_limits(wiphy);
+
/* sanity check supported bands/channels */
for (band = 0; band < NUM_NL80211_BANDS; band++) {
u16 types = 0;_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 13 lines · Arend van Spriel
+ Rafał
Quoted 9 lines · Sven Eckelmann
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.
Quoted 5 lines
Wondering whether we can call it in
wiphy_register()like below. Not sure why we did not explore that with the introduction of it by Rafał. Maybe he remembers. I did not find something in that direction in patchwork, but may have missed it. I know mt76 drops the band reference if it ends up with all channels disabled. Maybe that was the reason.
Sorry for sending this twice. My wifi connection was quirky.
Gr. AvS
_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 27 lines · Arend van Spriel
+ Rafał
Quoted 8 lines · Sven Eckelmann
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.
Wondering whether we can call it in
wiphy_register()like below. Not sure why we did not explore that with the introduction of it by Rafał. Maybe he remembers. I did not find something in that direction in patchwork, but may have missed it. I know mt76 drops the band reference if it ends up with all channels disabled. Maybe that was the reason.Regards,
Arend
---net/wireless/core.c +0
-0
net/wireless/core.c int wiphy_register(struct wiphy *wiphy) · line 749
Quoted 8 lines
net/wireless/core.c +2
-0@@ -742,6 +742,8 @@ int wiphy_register(struct wiphy *wiphy)if (res)return res; +wiphy_read_of_freq_limits (wiphy); +/* sanity check supported bands/channels */ for (band =0 ; band <NUM_NL80211_BANDS ; band++) {u16 types =0 ;
Nobody commented to this, so not sure what to do. Maybe it's best to apply Sven's patch now and we can later move the call to cfg80211 if needed. Sounds good?
Signature · 6 lines
Kalle Valo _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 11 lines · Sven Eckelmann
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 Sven Eckelmann <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
34d5629d2ca8 ath10k: limit available channels via DT ieee80211-freq-limit
Signature · 9 lines
https://patchwork.kernel.org/patch/10549245/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Quoted 11 lines · Sven Eckelmann
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 Sven Eckelmann <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
34d5629d2ca8 ath10k: limit available channels via DT ieee80211-freq-limit
Signature · 3 lines
https://patchwork.kernel.org/patch/10549245/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches