aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/380-0010-ath10k-support-use-of-channel-173.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/kernel/mac80211/patches/380-0010-ath10k-support-use-of-channel-173.patch')
-rw-r--r--package/kernel/mac80211/patches/380-0010-ath10k-support-use-of-channel-173.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/380-0010-ath10k-support-use-of-channel-173.patch b/package/kernel/mac80211/patches/380-0010-ath10k-support-use-of-channel-173.patch
new file mode 100644
index 0000000000..06b68b280a
--- /dev/null
+++ b/package/kernel/mac80211/patches/380-0010-ath10k-support-use-of-channel-173.patch
@@ -0,0 +1,52 @@
+From 38441fb6fcbb97817dff5c012609860a2b39c3e9 Mon Sep 17 00:00:00 2001
+From: Ben Greear <greearb@candelatech.com>
+Date: Tue, 2 Jan 2018 16:51:01 -0800
+Subject: [PATCH] ath10k: support use of channel 173
+
+The India regulatory domain allows CH 173, so add that to the
+available channel list. I verified basic connectivity between
+a 9880 and 9984 NIC.
+
+Signed-off-by: Ben Greear <greearb@candelatech.com>
+Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
+---
+ drivers/net/wireless/ath/ath10k/core.h | 3 ++-
+ drivers/net/wireless/ath/ath10k/mac.c | 3 +++
+ drivers/net/wireless/ath/ath10k/wmi.c | 2 +-
+ 3 files changed, 6 insertions(+), 2 deletions(-)
+
+--- a/drivers/net/wireless/ath/ath10k/core.h
++++ b/drivers/net/wireless/ath/ath10k/core.h
+@@ -47,7 +47,8 @@
+ #define WMI_READY_TIMEOUT (5 * HZ)
+ #define ATH10K_FLUSH_TIMEOUT_HZ (5 * HZ)
+ #define ATH10K_CONNECTION_LOSS_HZ (3 * HZ)
+-#define ATH10K_NUM_CHANS 40
++#define ATH10K_NUM_CHANS 41
++#define ATH10K_MAX_5G_CHAN 173
+
+ /* Antenna noise floor */
+ #define ATH10K_DEFAULT_NOISE_FLOOR -95
+--- a/drivers/net/wireless/ath/ath10k/mac.c
++++ b/drivers/net/wireless/ath/ath10k/mac.c
+@@ -7766,6 +7766,9 @@ static const struct ieee80211_channel at
+ CHAN5G(161, 5805, 0),
+ CHAN5G(165, 5825, 0),
+ CHAN5G(169, 5845, 0),
++ CHAN5G(173, 5865, 0),
++ /* If you add more, you may need to change ATH10K_MAX_5G_CHAN */
++ /* And you will definitely need to change ATH10K_NUM_CHANS in core.h */
+ };
+
+ struct ath10k *ath10k_mac_create(size_t priv_size)
+--- a/drivers/net/wireless/ath/ath10k/wmi.c
++++ b/drivers/net/wireless/ath/ath10k/wmi.c
+@@ -2363,7 +2363,7 @@ int ath10k_wmi_event_mgmt_rx(struct ath1
+ */
+ if (channel >= 1 && channel <= 14) {
+ status->band = NL80211_BAND_2GHZ;
+- } else if (channel >= 36 && channel <= 169) {
++ } else if (channel >= 36 && channel <= ATH10K_MAX_5G_CHAN) {
+ status->band = NL80211_BAND_5GHZ;
+ } else {
+ /* Shouldn't happen unless list of advertised channels to