diff mbox

[OpenWrt-Devel] ramips: enable external amplifier for Xiaomi MiWiFi Mini

Message ID 55e5bb81.0314320a.a482.3a7e@mx.google.com
State Accepted
Headers show

Commit Message

D. Andrei Măceș Aug. 31, 2015, 4:11 p.m. UTC
Attempt to boost the 2.4 GHz signal, currently very low.

Signed-off-by: D. Andrei Măceș <dmaces@nd.edu>
---
 target/linux/ramips/dts/MIWIFI-MINI.dts | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Chuanhong Guo Sept. 2, 2015, 11:49 p.m. UTC | #1
Hi!
   I remember that there is no external PA on Miwifi Mini so this
patch may be useless :-(  BTW There is no external PA and external LNA
support in current rt2x00 driver.

2015-09-01 0:11 GMT+08:00 D. Andrei Măceș <dmaces@nd.edu>:
> Attempt to boost the 2.4 GHz signal, currently very low.
>
> Signed-off-by: D. Andrei Măceș <dmaces@nd.edu>
> ---
>  target/linux/ramips/dts/MIWIFI-MINI.dts | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/target/linux/ramips/dts/MIWIFI-MINI.dts b/target/linux/ramips/dts/MIWIFI-MINI.dts
> index fa9846c..dad99c3 100644
> --- a/target/linux/ramips/dts/MIWIFI-MINI.dts
> +++ b/target/linux/ramips/dts/MIWIFI-MINI.dts
> @@ -113,6 +113,11 @@
>                                 ralink,group = "i2c", "rgmii1";
>                                 ralink,function = "gpio";
>                         };
> +
> +                       pa {
> +                               ralink,group = "pa";
> +                               ralink,function = "pa";
> +                       };
>                 };
>         };
>
> --
> 2.1.4
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
D. Andrei Măceș Sept. 3, 2015, 12:49 a.m. UTC | #2
On Wed, Sep 2, 2015 at 7:49 PM 郭传鈜 <gch981213@gmail.com> wrote:

> Hi!
>    I remember that there is no external PA on Miwifi Mini so this
> patch may be useless :-(


Thanks, are you completely certain about this information? I've been
testing with this change for a few days now, and the signal levels are much
better (roughly +15 in SNR). Also, someone on this ticket
<https://dev.openwrt.org/ticket/20369#comment:3> has a similar experience.
Finally, I've stumbled upon this change in @rssnsj's GitHub as well (this
commit
<https://github.com/rssnsj/openwrt-xiaomi-mini/commit/121d32edd2293259430aae6d1d58115dc064bb29>
).

BTW There is no external PA and external LNA
> support in current rt2x00 driver.
>

I may not be reading things correctly, but I see lots of code to support PA
and LNA in rt2x00 (e.g., rt2800lib.c). Do you mean that our RT5390 is
lacking this support? Either way, wouldn't enabling it on the board (if
present) improve things regardless?


> 2015-09-01 0:11 GMT+08:00 D. Andrei Măceș <dmaces@nd.edu>:
> > Attempt to boost the 2.4 GHz signal, currently very low.
> >
> > Signed-off-by: D. Andrei Măceș <dmaces@nd.edu>
> > ---
> >  target/linux/ramips/dts/MIWIFI-MINI.dts | 5 +++++
> >  1 file changed, 5 insertions(+)
> >
> > diff --git a/target/linux/ramips/dts/MIWIFI-MINI.dts
> b/target/linux/ramips/dts/MIWIFI-MINI.dts
> > index fa9846c..dad99c3 100644
> > --- a/target/linux/ramips/dts/MIWIFI-MINI.dts
> > +++ b/target/linux/ramips/dts/MIWIFI-MINI.dts
> > @@ -113,6 +113,11 @@
> >                                 ralink,group = "i2c", "rgmii1";
> >                                 ralink,function = "gpio";
> >                         };
> > +
> > +                       pa {
> > +                               ralink,group = "pa";
> > +                               ralink,function = "pa";
> > +                       };
> >                 };
> >         };
> >
> > --
> > 2.1.4
> > _______________________________________________
> > openwrt-devel mailing list
> > openwrt-devel@lists.openwrt.org
> > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
diff mbox

Patch

diff --git a/target/linux/ramips/dts/MIWIFI-MINI.dts b/target/linux/ramips/dts/MIWIFI-MINI.dts
index fa9846c..dad99c3 100644
--- a/target/linux/ramips/dts/MIWIFI-MINI.dts
+++ b/target/linux/ramips/dts/MIWIFI-MINI.dts
@@ -113,6 +113,11 @@ 
 				ralink,group = "i2c", "rgmii1";
 				ralink,function = "gpio";
 			};
+
+			pa {
+				ralink,group = "pa";
+				ralink,function = "pa";
+			};
 		};
 	};