Message ID | 20161027112211.7496-2-tk+ff@meskal.net |
---|---|
State | Accepted |
Commit | d172ff8c4cbc536bd3b7dbb6d84bee4fa56b3e80 |
Headers | show |
diff --git a/build_patches/openwrt/0005-ar71xx-cpe510-enable-LNA-for-CPE210-220-510-520.patch b/build_patches/openwrt/0005-ar71xx-cpe510-enable-LNA-for-CPE210-220-510-520.patch new file mode 100644 index 0000000..5f32936 --- /dev/null +++ b/build_patches/openwrt/0005-ar71xx-cpe510-enable-LNA-for-CPE210-220-510-520.patch @@ -0,0 +1,40 @@ +From 94e23bf7409d6cc4c9efb55ed32aba8e5a497966 Mon Sep 17 00:00:00 2001 +From: Alexander Couzens <lynxis@fe80.eu> +Date: Fri, 20 May 2016 13:10:36 +0200 +Subject: [PATCH] ar71xx/cpe510: enable LNA for CPE210/220/510/520 + +The LNA improves the rx path. Within a simple test setup +it improved the signal from -60dbm to -40dbm. + +Signed-off-by: Alexander Couzens <lynxis@fe80.eu> +--- + target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c +index 8bf5c0f..5cb052a 100644 +--- target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c ++++ target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c +@@ -30,6 +30,9 @@ + #define CPE510_GPIO_LED_L3 15 + #define CPE510_GPIO_LED_L4 16 + ++#define CPE510_GPIO_EXTERNAL_LNA0 18 ++#define CPE510_GPIO_EXTERNAL_LNA1 19 ++ + #define CPE510_GPIO_BTN_RESET 4 + + #define CPE510_KEYS_POLL_INTERVAL 20 /* msecs */ +@@ -93,6 +96,9 @@ static void __init cpe510_setup(void) + ARRAY_SIZE(cpe510_gpio_keys), + cpe510_gpio_keys); + ++ ath79_wmac_set_ext_lna_gpio(0, CPE510_GPIO_EXTERNAL_LNA0); ++ ath79_wmac_set_ext_lna_gpio(1, CPE510_GPIO_EXTERNAL_LNA1); ++ + ath79_register_m25p80(NULL); + + ath79_register_mdio(1, 0); +-- +2.10.1 +
Hi Tobias Danke fürs Fixen. Am Donnerstag, den 27.10.2016, 13:22 +0200 schrieb Tobias Klaus: > This patch massivly improves the wireless performance of CPE210 > > Signed-off-by: Tobias Klaus <tk+ff@meskal.net> Reveiwed-by: Tim Niemeyer <tim@tn-x.org> Tested-by: Tim Niemeyer <tim@tn-x.org> Tim > --- > ...-cpe510-enable-LNA-for-CPE210-220-510-520.patch | 40 ++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > create mode 100644 build_patches/openwrt/0005-ar71xx-cpe510-enable-LNA-for-CPE210-220-510-520.patch > > diff --git a/build_patches/openwrt/0005-ar71xx-cpe510-enable-LNA-for-CPE210-220-510-520.patch b/build_patches/openwrt/0005-ar71xx-cpe510-enable-LNA-for-CPE210-220-510-520.patch > new file mode 100644 > index 0000000..5f32936 > --- /dev/null > +++ b/build_patches/openwrt/0005-ar71xx-cpe510-enable-LNA-for-CPE210-220-510-520.patch > @@ -0,0 +1,40 @@ > +From 94e23bf7409d6cc4c9efb55ed32aba8e5a497966 Mon Sep 17 00:00:00 2001 > +From: Alexander Couzens <lynxis@fe80.eu> > +Date: Fri, 20 May 2016 13:10:36 +0200 > +Subject: [PATCH] ar71xx/cpe510: enable LNA for CPE210/220/510/520 > + > +The LNA improves the rx path. Within a simple test setup > +it improved the signal from -60dbm to -40dbm. > + > +Signed-off-by: Alexander Couzens <lynxis@fe80.eu> > +--- > + target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c | 6 ++++++ > + 1 file changed, 6 insertions(+) > + > +diff --git target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c > +index 8bf5c0f..5cb052a 100644 > +--- target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c > ++++ target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c > +@@ -30,6 +30,9 @@ > + #define CPE510_GPIO_LED_L3 15 > + #define CPE510_GPIO_LED_L4 16 > + > ++#define CPE510_GPIO_EXTERNAL_LNA0 18 > ++#define CPE510_GPIO_EXTERNAL_LNA1 19 > ++ > + #define CPE510_GPIO_BTN_RESET 4 > + > + #define CPE510_KEYS_POLL_INTERVAL 20 /* msecs */ > +@@ -93,6 +96,9 @@ static void __init cpe510_setup(void) > + ARRAY_SIZE(cpe510_gpio_keys), > + cpe510_gpio_keys); > + > ++ ath79_wmac_set_ext_lna_gpio(0, CPE510_GPIO_EXTERNAL_LNA0); > ++ ath79_wmac_set_ext_lna_gpio(1, CPE510_GPIO_EXTERNAL_LNA1); > ++ > + ath79_register_m25p80(NULL); > + > + ath79_register_mdio(1, 0); > +-- > +2.10.1 > + > -- > 2.10.1 >
Hi, auch von mir Reviewed-by: Jan Kraus <mayosemmel@gmail.com> Außerdem für die Erkennung vom Patchwork nochmal den von Tim ohne Tippfehler: Reviewed-by: Tim Niemeyer <tim@tn-x.org> Grüße Jan Am Sonntag, den 30.10.2016, 17:23 +0100 schrieb Tim Niemeyer: > Hi Tobias > > Danke fürs Fixen. > > Am Donnerstag, den 27.10.2016, 13:22 +0200 schrieb Tobias Klaus: > > This patch massivly improves the wireless performance of CPE210 > > > > Signed-off-by: Tobias Klaus <tk+ff@meskal.net> > Reveiwed-by: Tim Niemeyer <tim@tn-x.org> > Tested-by: Tim Niemeyer <tim@tn-x.org> > > Tim > > > --- > > ...-cpe510-enable-LNA-for-CPE210-220-510-520.patch | 40 ++++++++++++++++++++++ > > 1 file changed, 40 insertions(+) > > create mode 100644 build_patches/openwrt/0005-ar71xx-cpe510-enable-LNA-for-CPE210-220-510-520.patch > > > > diff --git a/build_patches/openwrt/0005-ar71xx-cpe510-enable-LNA-for-CPE210-220-510-520.patch b/build_patches/openwrt/0005-ar71xx-cpe510-enable-LNA-for-CPE210-220-510-520.patch > > new file mode 100644 > > index 0000000..5f32936 > > --- /dev/null > > +++ b/build_patches/openwrt/0005-ar71xx-cpe510-enable-LNA-for-CPE210-220-510-520.patch > > @@ -0,0 +1,40 @@ > > +From 94e23bf7409d6cc4c9efb55ed32aba8e5a497966 Mon Sep 17 00:00:00 2001 > > +From: Alexander Couzens <lynxis@fe80.eu> > > +Date: Fri, 20 May 2016 13:10:36 +0200 > > +Subject: [PATCH] ar71xx/cpe510: enable LNA for CPE210/220/510/520 > > + > > +The LNA improves the rx path. Within a simple test setup > > +it improved the signal from -60dbm to -40dbm. > > + > > +Signed-off-by: Alexander Couzens <lynxis@fe80.eu> > > +--- > > + target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c | 6 ++++++ > > + 1 file changed, 6 insertions(+) > > + > > +diff --git target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c > > +index 8bf5c0f..5cb052a 100644 > > +--- target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c > > ++++ target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c > > +@@ -30,6 +30,9 @@ > > + #define CPE510_GPIO_LED_L3 15 > > + #define CPE510_GPIO_LED_L4 16 > > + > > ++#define CPE510_GPIO_EXTERNAL_LNA0 18 > > ++#define CPE510_GPIO_EXTERNAL_LNA1 19 > > ++ > > + #define CPE510_GPIO_BTN_RESET 4 > > + > > + #define CPE510_KEYS_POLL_INTERVAL 20 /* msecs */ > > +@@ -93,6 +96,9 @@ static void __init cpe510_setup(void) > > + ARRAY_SIZE(cpe510_gpio_keys), > > + cpe510_gpio_keys); > > + > > ++ ath79_wmac_set_ext_lna_gpio(0, CPE510_GPIO_EXTERNAL_LNA0); > > ++ ath79_wmac_set_ext_lna_gpio(1, CPE510_GPIO_EXTERNAL_LNA1); > > ++ > > + ath79_register_m25p80(NULL); > > + > > + ath79_register_mdio(1, 0); > > +-- > > +2.10.1 > > + > > -- > > 2.10.1 > > > > -- > franken-dev mailing list > franken-dev@freifunk.net > http://lists.freifunk.net/mailman/listinfo/franken-dev-freifunk.net
This patch massivly improves the wireless performance of CPE210 Signed-off-by: Tobias Klaus <tk+ff@meskal.net> --- ...-cpe510-enable-LNA-for-CPE210-220-510-520.patch | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 build_patches/openwrt/0005-ar71xx-cpe510-enable-LNA-for-CPE210-220-510-520.patch