aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/327-ath9k-add-a-helper-to-get-the-string-representation-.patch
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2016-11-26 01:01:12 +0100
committerMathias Kresin <dev@kresin.me>2016-11-29 21:40:16 +0100
commit1847248fc1560d10cb49c88b343598c9cb673f38 (patch)
treeb33dcd3f1425afb69cc565bd7625d51f27c86929 /package/kernel/mac80211/patches/327-ath9k-add-a-helper-to-get-the-string-representation-.patch
parenta15ea362d7279420d3b620412bbb007f9b02b77f (diff)
downloadupstream-1847248fc1560d10cb49c88b343598c9cb673f38.tar.gz
upstream-1847248fc1560d10cb49c88b343598c9cb673f38.tar.bz2
upstream-1847248fc1560d10cb49c88b343598c9cb673f38.zip
kernel: mac80211: backport ath9k device tree support patches
These patches add support for configuring ath9k based devices via devicetree. This was tested on PCI(e) based devices. This should work for AHB based devices as well (adding more AHB specific properties may still be needed) as soon as the ath79 platform is ready to populate the ath9k wmac via devicetree. This patchset was accepted upstream, more information can be found on the linux-wireless list: https://www.spinics.net/lists/linux-wireless/msg155474.html Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Diffstat (limited to 'package/kernel/mac80211/patches/327-ath9k-add-a-helper-to-get-the-string-representation-.patch')
-rw-r--r--package/kernel/mac80211/patches/327-ath9k-add-a-helper-to-get-the-string-representation-.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/327-ath9k-add-a-helper-to-get-the-string-representation-.patch b/package/kernel/mac80211/patches/327-ath9k-add-a-helper-to-get-the-string-representation-.patch
new file mode 100644
index 0000000000..c191495b84
--- /dev/null
+++ b/package/kernel/mac80211/patches/327-ath9k-add-a-helper-to-get-the-string-representation-.patch
@@ -0,0 +1,42 @@
+From 25b8b2d57def4854558c135228a52326a7d346ad Mon Sep 17 00:00:00 2001
+From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
+Date: Sun, 16 Oct 2016 22:59:06 +0200
+Subject: [PATCH 2/3] ath9k: add a helper to get the string representation of
+ ath_bus_type
+
+This can be used when the ath_bus_type has to be presented in a log
+message or firmware filename.
+
+Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
+Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
+---
+ drivers/net/wireless/ath/ath.h | 6 ++++++
+ drivers/net/wireless/ath/main.c | 7 +++++++
+ 2 files changed, 13 insertions(+)
+
+--- a/drivers/net/wireless/ath/ath.h
++++ b/drivers/net/wireless/ath/ath.h
+@@ -327,4 +327,10 @@ static inline const char *ath_opmode_to_
+ }
+ #endif
+
++extern const char *ath_bus_type_strings[];
++static inline const char *ath_bus_type_to_string(enum ath_bus_type bustype)
++{
++ return ath_bus_type_strings[bustype];
++}
++
+ #endif /* ATH_H */
+--- a/drivers/net/wireless/ath/main.c
++++ b/drivers/net/wireless/ath/main.c
+@@ -90,3 +90,10 @@ void ath_printk(const char *level, const
+ va_end(args);
+ }
+ EXPORT_SYMBOL(ath_printk);
++
++const char *ath_bus_type_strings[] = {
++ [ATH_PCI] = "pci",
++ [ATH_AHB] = "ahb",
++ [ATH_USB] = "usb",
++};
++EXPORT_SYMBOL(ath_bus_type_strings);