From 2dcd955aea1ab715d048910322b05d1af0b69748 Mon Sep 17 00:00:00 2001 From: Ansuel Smith Date: Sun, 8 Jul 2018 16:04:15 +0200 Subject: mac80211: backport and update patches for ath10k This commit refreshes and updates the VHT160 ath10k support fix patches and adds a number of backports from ath-next: * 8ed05ed06fca ath10k: handle tdls peer events * 229329ff345f ath10k: wmi: modify svc bitmap parsing for wcn3990 * 14d65775687c ath10k: advertise TDLS wider bandwidth support for 5GHz * bc64d05220f3 ath10k: debugfs support to get final TPC stats for 10.4 variants * 8b2d93dd2261 ath10k: Fix kernel panic while using worker (ath10k_sta_rc_update_wk) * 4b190675ad06 ath10k: fix kernel panic while reading tpc_stats * be8cce96f14d ath10k: add support to configure channel dwell time * f40105e67478 ath: add support to get the detected radar specifications * 6f6eb1bcbeff ath10k: DFS Host Confirmation * 260e629bbf44 ath10k: fix memory leak of tpc_stats * 38441fb6fcbb ath10k: support use of channel 173 * 2e9bcd0d7324 ath10k: fix spectral scan for QCA9984 and QCA9888 chipsets Signed-off-by: Ansuel Smith [move backported patches in the 3xx number space, bring in upstream order, replace incomplete patch files with git format-patch ones, rewrite commit message, fix subject] Signed-off-by: Jo-Philipp Wich --- ...rtise-TDLS-wider-bandwidth-support-for-5G.patch | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 package/kernel/mac80211/patches/380-0002-ath10k-advertise-TDLS-wider-bandwidth-support-for-5G.patch (limited to 'package/kernel/mac80211/patches/380-0002-ath10k-advertise-TDLS-wider-bandwidth-support-for-5G.patch') diff --git a/package/kernel/mac80211/patches/380-0002-ath10k-advertise-TDLS-wider-bandwidth-support-for-5G.patch b/package/kernel/mac80211/patches/380-0002-ath10k-advertise-TDLS-wider-bandwidth-support-for-5G.patch new file mode 100644 index 0000000000..b52451c928 --- /dev/null +++ b/package/kernel/mac80211/patches/380-0002-ath10k-advertise-TDLS-wider-bandwidth-support-for-5G.patch @@ -0,0 +1,64 @@ +From 14d65775687cb3a6f76a52f48f4be27a522bb396 Mon Sep 17 00:00:00 2001 +From: Balaji Pothunoori +Date: Thu, 21 Dec 2017 20:00:42 +0530 +Subject: [PATCH] ath10k: advertise TDLS wider bandwidth support for 5GHz + +Enable TDLS wider bandwidth support for 5GHz based on firmware wmi capabilities. + +This patch is required for chipset QCA9888. Tested with firmware version +10.4-3.5.1-00018. + +Signed-off-by: Balaji Pothunoori +Signed-off-by: Kalle Valo +--- + drivers/net/wireless/ath/ath10k/mac.c | 3 ++- + drivers/net/wireless/ath/ath10k/wmi.h | 5 +++++ + 2 files changed, 7 insertions(+), 1 deletion(-) + +--- a/drivers/net/wireless/ath/ath10k/mac.c ++++ b/drivers/net/wireless/ath/ath10k/mac.c +@@ -8236,7 +8236,8 @@ int ath10k_mac_register(struct ath10k *a + if (test_bit(WMI_SERVICE_TDLS, ar->wmi.svc_map) || + test_bit(WMI_SERVICE_TDLS_EXPLICIT_MODE_ONLY, ar->wmi.svc_map)) { + ar->hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS; +- ieee80211_hw_set(ar->hw, TDLS_WIDER_BW); ++ if (test_bit(WMI_SERVICE_TDLS_WIDER_BANDWIDTH, ar->wmi.svc_map)) ++ ieee80211_hw_set(ar->hw, TDLS_WIDER_BW); + } + + ar->hw->wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL; +--- a/drivers/net/wireless/ath/ath10k/wmi.h ++++ b/drivers/net/wireless/ath/ath10k/wmi.h +@@ -196,6 +196,7 @@ enum wmi_service { + WMI_SERVICE_TDLS_CONN_TRACKER_IN_HOST_MODE, + WMI_SERVICE_TDLS_EXPLICIT_MODE_ONLY, + WMI_SERVICE_MGMT_TX_WMI, ++ WMI_SERVICE_TDLS_WIDER_BANDWIDTH, + + /* keep last */ + WMI_SERVICE_MAX, +@@ -337,6 +338,7 @@ enum wmi_10_4_service { + WMI_10_4_SERVICE_TDLS_UAPSD_SLEEP_STA, + WMI_10_4_SERVICE_TDLS_CONN_TRACKER_IN_HOST_MODE, + WMI_10_4_SERVICE_TDLS_EXPLICIT_MODE_ONLY, ++ WMI_10_4_SERVICE_TDLS_WIDER_BANDWIDTH, + }; + + static inline char *wmi_service_name(int service_id) +@@ -445,6 +447,7 @@ static inline char *wmi_service_name(int + SVCSTR(WMI_SERVICE_SMART_LOGGING_SUPPORT); + SVCSTR(WMI_SERVICE_TDLS_CONN_TRACKER_IN_HOST_MODE); + SVCSTR(WMI_SERVICE_TDLS_EXPLICIT_MODE_ONLY); ++ SVCSTR(WMI_SERVICE_TDLS_WIDER_BANDWIDTH); + default: + return NULL; + } +@@ -741,6 +744,8 @@ static inline void wmi_10_4_svc_map(cons + WMI_SERVICE_TDLS_CONN_TRACKER_IN_HOST_MODE, len); + SVCMAP(WMI_10_4_SERVICE_TDLS_EXPLICIT_MODE_ONLY, + WMI_SERVICE_TDLS_EXPLICIT_MODE_ONLY, len); ++ SVCMAP(WMI_10_4_SERVICE_TDLS_WIDER_BANDWIDTH, ++ WMI_SERVICE_TDLS_WIDER_BANDWIDTH, len); + } + + #undef SVCMAP -- cgit v1.2.3