Add ubnt_hsr flag to struct ath9k_platform_data and enable it for the Outdoor
Plus access point so that the availability ot the HSR filter can be detected
by the ath9k driver at runtime.

Signed-off-by: Stefan Rompf <ste...@loplof.de>
---
Index: package/kernel/mac80211/patches/150-ath9k_ubnt_hsr_filter.patch
===================================================================
--- package/kernel/mac80211/patches/150-ath9k_ubnt_hsr_filter.patch     
(Revision 0)
+++ package/kernel/mac80211/patches/150-ath9k_ubnt_hsr_filter.patch     
(Arbeitskopie)
@@ -0,0 +1,15 @@
+Flag that this platform is an Ubiquiti UniFi Outdoor Plus
+containing a RF filter in ath9k's receive path.
+
+Signed-off-by: Stefan Rompf <ste...@loplof.de>
+
+--- mac80211/include/linux/ath9k_platform.h.orig       2015-06-15 
22:18:46.000000000 +0200
++++ mac80211/include/linux/ath9k_platform.h    2015-06-15 22:15:23.000000000 
+0200
+@@ -36,6 +36,7 @@
+       bool tx_gain_buffalo;
+       bool disable_2ghz;
+       bool disable_5ghz;
++      bool ubnt_hsr;
+ 
+       int (*get_mac_revision)(void);
+       int (*external_reset)(void);
Index: target/linux/generic/patches-3.18/150-ath9k_ubnt_hsr_filter.patch
===================================================================
--- target/linux/generic/patches-3.18/150-ath9k_ubnt_hsr_filter.patch   
(Revision 0)
+++ target/linux/generic/patches-3.18/150-ath9k_ubnt_hsr_filter.patch   
(Arbeitskopie)
@@ -0,0 +1,15 @@
+Flag that this platform is an Ubiquiti UniFi Outdoor Plus
+containing a RF filter in ath9k's receive path.
+
+Signed-off-by: Stefan Rompf <ste...@loplof.de>
+
+--- linux-3.18.14/include/linux/ath9k_platform.h.orig  2015-06-15 
22:18:46.000000000 +0200
++++ linux-3.18.14/include/linux/ath9k_platform.h       2015-06-15 
22:15:23.000000000 +0200
+@@ -36,6 +36,7 @@
+       bool tx_gain_buffalo;
+       bool disable_2ghz;
+       bool disable_5ghz;
++      bool ubnt_hsr;
+ 
+       int (*get_mac_revision)(void);
+       int (*external_reset)(void);
Index: 
target/linux/ar71xx/patches-3.18/608-MIPS-ath79-ubnt-xm-add-more-boards.patch
===================================================================
--- 
target/linux/ar71xx/patches-3.18/608-MIPS-ath79-ubnt-xm-add-more-boards.patch   
    (Revision 46000)
+++ 
target/linux/ar71xx/patches-3.18/608-MIPS-ath79-ubnt-xm-add-more-boards.patch   
    (Arbeitskopie)
@@ -254,6 +254,7 @@
 +      ath79_register_eth(0);
 +      ath79_register_eth(1);
 +
++      ap9x_pci_get_wmac_data(0)->ubnt_hsr = true;
 +      ap91_pci_init(ee, NULL);
 +
 +      ath79_register_leds_gpio(-1, 
ARRAY_SIZE(ubnt_unifi_outdoor_plus_leds_gpio),
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to