diff options
author | Christian Lamparter <chunkeey@gmail.com> | 2021-10-09 20:51:21 +0200 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2021-10-30 16:32:59 +0200 |
commit | 4c8dd973ef8e76f9fc622f0baab981769c89b601 (patch) | |
tree | e10d98ac7d370452d0cc14104e05e47d643a85e7 /package/kernel/mac80211/patches/ath9k/550-ath9k-disable-bands-via-dt.patch | |
parent | 5287defa1fa47a037ba29b653c4599ee145a7e03 (diff) | |
download | upstream-4c8dd973ef8e76f9fc622f0baab981769c89b601.tar.gz upstream-4c8dd973ef8e76f9fc622f0baab981769c89b601.tar.bz2 upstream-4c8dd973ef8e76f9fc622f0baab981769c89b601.zip |
ath9k: OF: qca,disable-(2|5)ghz => ieee80211-freq-limit
OpenWrt maintains two special out-of-tree DT properties:
"qca,disable-5ghz" and "qca,disable-2ghz". These are implemented
in a mac80211 ath9k patch "550-ath9k-disable-bands-via-dt.patch".
With the things being what they are, now might be a good
point to switch the devices to the generic and upstream
"ieee80211-freq-limit" property. This property is much
broader and works differently. Instead of disabling the
drivers logic which would add the affected band and
channels. It now disables all channels which are not
within the specified frequency range.
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> # HH5A
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'package/kernel/mac80211/patches/ath9k/550-ath9k-disable-bands-via-dt.patch')
-rw-r--r-- | package/kernel/mac80211/patches/ath9k/550-ath9k-disable-bands-via-dt.patch | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/package/kernel/mac80211/patches/ath9k/550-ath9k-disable-bands-via-dt.patch b/package/kernel/mac80211/patches/ath9k/550-ath9k-disable-bands-via-dt.patch deleted file mode 100644 index d1593339d2..0000000000 --- a/package/kernel/mac80211/patches/ath9k/550-ath9k-disable-bands-via-dt.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- a/drivers/net/wireless/ath/ath9k/init.c -+++ b/drivers/net/wireless/ath/ath9k/init.c -@@ -625,6 +625,12 @@ static int ath9k_of_init(struct ath_soft - - ath_dbg(common, CONFIG, "parsing configuration from OF node\n"); - -+ if (of_property_read_bool(np, "qca,disable-2ghz")) -+ ah->disable_2ghz = true; -+ -+ if (of_property_read_bool(np, "qca,disable-5ghz")) -+ ah->disable_5ghz = true; -+ - if (of_property_read_bool(np, "qca,no-eeprom")) { - /* ath9k-eeprom-<bus>-<id>.bin */ - scnprintf(eeprom_name, sizeof(eeprom_name), |