Skip to content
Snippets Groups Projects
Commit 7c67ff0c authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

ath9k: fix HSR tuner support for UniFi Outdoor Plus

Also remove the BROKEN check as the UniFi Outdoor Plus support seems to
work fine now.

Fixes #272
parent 49fcfb8d
No related branches found
No related tags found
No related merge requests found
...@@ -6,10 +6,10 @@ Patch-by: Stefan Rompf <stefan@loplof.de> ...@@ -6,10 +6,10 @@ Patch-by: Stefan Rompf <stefan@loplof.de>
diff --git a/package/kernel/mac80211/patches/931-ubnt-uap-plus-hsr.patch b/package/kernel/mac80211/patches/931-ubnt-uap-plus-hsr.patch diff --git a/package/kernel/mac80211/patches/931-ubnt-uap-plus-hsr.patch b/package/kernel/mac80211/patches/931-ubnt-uap-plus-hsr.patch
new file mode 100644 new file mode 100644
index 0000000..4cd6faf index 0000000..4533335
--- /dev/null --- /dev/null
+++ b/package/kernel/mac80211/patches/931-ubnt-uap-plus-hsr.patch +++ b/package/kernel/mac80211/patches/931-ubnt-uap-plus-hsr.patch
@@ -0,0 +1,353 @@ @@ -0,0 +1,346 @@
+--- a/drivers/net/wireless/ath/ath9k/channel.c +--- a/drivers/net/wireless/ath/ath9k/channel.c
++++ b/drivers/net/wireless/ath/ath9k/channel.c ++++ b/drivers/net/wireless/ath/ath9k/channel.c
+@@ -15,6 +15,8 @@ +@@ -15,6 +15,8 @@
...@@ -266,7 +266,7 @@ index 0000000..4cd6faf ...@@ -266,7 +266,7 @@ index 0000000..4cd6faf
++ ++
+--- /dev/null +--- /dev/null
++++ b/drivers/net/wireless/ath/ath9k/hsr.h ++++ b/drivers/net/wireless/ath/ath9k/hsr.h
+@@ -0,0 +1,40 @@ +@@ -0,0 +1,33 @@
++/* ++/*
++ * The MIT License (MIT) ++ * The MIT License (MIT)
++ * ++ *
...@@ -294,17 +294,10 @@ index 0000000..4cd6faf ...@@ -294,17 +294,10 @@ index 0000000..4cd6faf
++#ifndef HSR_H_ ++#ifndef HSR_H_
++#define HSR_H_ ++#define HSR_H_
++ ++
++#ifdef CPTCFG_ATH9K_UBNTHSR
++void hsr_init(struct ath_hw* ah); ++void hsr_init(struct ath_hw* ah);
++int hsr_disable(struct ath_hw* ah); ++int hsr_disable(struct ath_hw* ah);
++int hsr_enable(struct ath_hw* ah, int bw, int fq); ++int hsr_enable(struct ath_hw* ah, int bw, int fq);
++int hsr_status(struct ath_hw* ah); ++int hsr_status(struct ath_hw* ah);
++#else
++static inline void hsr_init(struct ath_hw* ah) {}
++static inline int hsr_disable(struct ath_hw* ah) { return 0; }
++static inline int hsr_enable(struct ath_hw* ah, int bw, int fq) { return 0; }
++static inline int hsr_status(struct ath_hw* ah) { return 0; }
++#endif
++ ++
++#endif /* HSR_H_ */ ++#endif /* HSR_H_ */
+--- a/drivers/net/wireless/ath/ath9k/main.c +--- a/drivers/net/wireless/ath/ath9k/main.c
......
...@@ -159,9 +159,10 @@ $(eval $(call GluonModel,UBNT,ubnt-nano-m-xw,ubiquiti-nanostation-m-xw)) ...@@ -159,9 +159,10 @@ $(eval $(call GluonModel,UBNT,ubnt-nano-m-xw,ubiquiti-nanostation-m-xw))
$(eval $(call GluonModel,UBNT,ubnt-uap-pro,ubiquiti-unifi-ap-pro)) $(eval $(call GluonModel,UBNT,ubnt-uap-pro,ubiquiti-unifi-ap-pro))
$(eval $(call GluonModel,UBNT,ubnt-unifi,ubiquiti-unifi)) $(eval $(call GluonModel,UBNT,ubnt-unifi,ubiquiti-unifi))
$(eval $(call GluonModel,UBNT,ubnt-unifi-outdoor,ubiquiti-unifiap-outdoor)) $(eval $(call GluonModel,UBNT,ubnt-unifi-outdoor,ubiquiti-unifiap-outdoor))
$(eval $(call GluonModel,UBNT,ubnt-unifi-outdoor-plus,ubiquiti-unifiap-outdoor+))
ifeq ($(BROKEN),1) ifeq ($(BROKEN),1)
$(eval $(call GluonModel,UBNT,ubnt-ls-sr71,ubiquiti-ls-sr71)) # BROKEN: Untested $(eval $(call GluonModel,UBNT,ubnt-ls-sr71,ubiquiti-ls-sr71)) # BROKEN: Untested
$(eval $(call GluonModel,UBNT,ubnt-unifi-outdoor-plus,ubiquiti-unifiap-outdoor+)) # BROKEN: WLAN doesn't work correctly (high packet loss)
endif endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment