diff options
author | Robert Marko <robimarko@gmail.com> | 2024-04-11 21:08:44 +0200 |
---|---|---|
committer | Robert Marko <robimarko@gmail.com> | 2024-04-13 20:05:01 +0200 |
commit | 5fe0d296c1edc7cc69127e02cda22b8b5025e7d9 (patch) | |
tree | 0952f77fb6b7cdcc66c5fdc5ae9fdfb673a94d27 /package/kernel/mac80211 | |
parent | eb13076e77c412cfe4dd6de48138507ea6f3c8b3 (diff) | |
download | openwrt-5fe0d296c1edc7cc69127e02cda22b8b5025e7d9.tar.gz openwrt-5fe0d296c1edc7cc69127e02cda22b8b5025e7d9.tar.bz2 openwrt-5fe0d296c1edc7cc69127e02cda22b8b5025e7d9.zip |
mac80211: ath11k: support DT property to limit channels
Limiting allowed channels per device may be required and is commonly
supported on other drivers, so include a pending patch to add support for
the same.
Signed-off-by: Robert Marko <robimarko@gmail.com>
Diffstat (limited to 'package/kernel/mac80211')
-rw-r--r-- | package/kernel/mac80211/patches/ath11k/101-wifi-ath11k-add-support-DT-ieee80211-freq-limit.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/ath11k/101-wifi-ath11k-add-support-DT-ieee80211-freq-limit.patch b/package/kernel/mac80211/patches/ath11k/101-wifi-ath11k-add-support-DT-ieee80211-freq-limit.patch new file mode 100644 index 0000000000..9571f7f207 --- /dev/null +++ b/package/kernel/mac80211/patches/ath11k/101-wifi-ath11k-add-support-DT-ieee80211-freq-limit.patch @@ -0,0 +1,24 @@ +From 1338da257f299d35b4d954b9fda2cc7e0a54a69d Mon Sep 17 00:00:00 2001 +From: Christian Lamparter <chunkeey@gmail.com> +Date: Sun, 11 Jun 2023 14:37:32 +0200 +Subject: [PATCH] wifi: ath11k: add support DT ieee80211-freq-limit + +The common DT property can be used to limit the available +channels/frequencies. But ath11k has to manually call +wiphy_read_of_freq_limits(). + +Signed-off-by: Christian Lamparter <chunkeey@gmail.com> +--- + drivers/net/wireless/ath/ath11k/mac.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/drivers/net/wireless/ath/ath11k/mac.c ++++ b/drivers/net/wireless/ath/ath11k/mac.c +@@ -9455,6 +9455,7 @@ static int __ath11k_mac_register(struct + if (ret) + goto err; + ++ wiphy_read_of_freq_limits(ar->hw->wiphy); + ath11k_mac_setup_ht_vht_cap(ar, cap, &ht_cap); + ath11k_mac_setup_he_cap(ar, cap); + |