It works great!!! Just one little point: Where it says Nanostation Loco2) i should be "Nanostation Loco2"). Then, to select vertical antenna in nanosation loco2, you should choose external antenna in /etc/conf/wireless. I passed from detecting 4 networks to see more than 24, just as using AirOS. Great job!!!
Thanks a lot and please upload the patch in the repository. Xavier!! 2009/10/17 <openwrt-devel-requ...@lists.openwrt.org>: > Send openwrt-devel mailing list submissions to > openwrt-de...@lists.openwrt.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.openwrt.org/mailman/listinfo/openwrt-devel > or, via email, send a message with subject or body 'help' to > openwrt-devel-requ...@lists.openwrt.org > > You can reach the person managing the list at > openwrt-devel-ow...@lists.openwrt.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of openwrt-devel digest..." > > > Today's Topics: > > 1. vertical antenna nanostation loco (Xavier Martinez) > 2. Re: seems typo in [package/base-files/files/etc/hosts] file > (Xiangfu Liu) > 3. Re: seems typo in [package/base-files/files/etc/hosts] file > (Benjamin Cama) > 4. Re: vertical antenna nanostation loco (Jo-Philipp Wich) > 5. Re: vertical antenna nanostation loco (Outback Dingo) > 6. Re: vertical antenna nanostation loco (Felix Fietkau) > 7. Re: vertical antenna nanostation loco (Outback Dingo) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 17 Oct 2009 18:55:44 +0200 > From: Xavier Martinez <xavier.martinez.ll...@gmail.com> > To: openwrt-devel@lists.openwrt.org > Subject: [OpenWrt-Devel] vertical antenna nanostation loco > Message-ID: > <d8b6e5e40910170955m1cef886ck18f6345897d0...@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > > Recently, I've replaced my old and reliable Nanostation2 for a > Nanostation Loco2. However, it seems that antenna selection doesn't > work fine. I would be very pleased if someone could help in setting > vertical antenna working in Nanostation Loco2. Under AirOS, I could > see and link to a lot of AP when switching to vertical polarisation. > However, when running openwrt, I've only see the same APs as in > horizontal polarisation under AirOS. I've flashed a nanostation loco 2 > with the latest openwrt firm from the repository. My > /etc/config/wireless looks like this: > > config 'wifi-device' 'wifi0' > ??????? option 'type' 'atheros' > ??????? option 'disabled' '0' > ??????? option 'channel' '6' > ??????? option 'mode' '11b' > ??????? option 'diversity' '0' > ??????? option 'txpower' '20' > ??????? option 'rxantenna' '2' > ??????? option 'txantenna' '2' > ??????? option 'diversity' '0' > ??????? option 'distance' '5000' > > config 'wifi-iface' > ??????? option 'device' 'wifi0' > ??????? option 'encryption' 'none' > ??????? option 'ssid' 'guifibages' > ??????? option 'mode' 'adhoc' > ??????? option 'bssid' '12:34:56:78:9A:BC' > ??????? option 'network' 'wifi0' > > However, I suspect that vertical antenna is not working. I've tried > systctl -w dev.wifi0.txantenna=1 and systctl -w dev.wifi0.rxantenna=1 > but it doesn't work either. Looking AirOS, I've discovered that > /proc/sys/dev/wifi0/extantenna is set to 1, I've also tried activating > external antenna as it is described for a Nanostation2: > > sysctl set dev.wifi0.softled 0 > gpioctl 7 0 > > with no luck. Rotating the Nanostation 90? does'nt work either. Anyone > has succeded in making the vertical antenna work in a Nanostation > Loco2? It is only a sensitivity problem? Why does it work in AirOS? > > Thanks > > Xavier > > > ------------------------------ > > Message: 2 > Date: Sun, 18 Oct 2009 00:58:05 +0800 > From: Xiangfu Liu <xiangf...@gmail.com> > To: OpenWrt Development List <openwrt-devel@lists.openwrt.org> > Subject: Re: [OpenWrt-Devel] seems typo in > [package/base-files/files/etc/hosts] file > Message-ID: <4ad9f79d.10...@gmail.com> > Content-Type: text/plain; charset=UTF-8 > > Benjamin Cama wrote: >> Hi, >> >> Le vendredi 16 octobre 2009 ? 13:09 +0200, Mirko Vogt a ?crit : >>> According commit log this was done by purpose: >>> >>> Revision 6292: "Change localhost into a fully qualified name[..]" >>> >>> However this change causes applications/libraries to fail which try to >>> resolve "localhost" which is used quite often. >> >> I think you should post precise bug reports about the problems you >> encounter. I have no problem here with localhost as a FQDN. > > Hi > > how about add another line in "/etc/hosts" file ? > I will try to report a bug. > write some info in this mail, when I run mpc, it's show: > > r...@bennanonote:~# mpc > error: host "localhost" not found > > > >> >> Regards, >> Benjamin >> >> _______________________________________________ >> openwrt-devel mailing list >> openwrt-devel@lists.openwrt.org >> https://lists.openwrt.org/mailman/listinfo/openwrt-devel > > > -- > Xiangfu Liu > Email: xiangfu at qi-hardware dot com > Web: http://www.qi-hardware.com > > > ------------------------------ > > Message: 3 > Date: Sat, 17 Oct 2009 19:50:05 +0200 > From: Benjamin Cama <ben...@free.fr> > To: OpenWrt Development List <openwrt-devel@lists.openwrt.org> > Subject: Re: [OpenWrt-Devel] seems typo in > [package/base-files/files/etc/hosts] file > Message-ID: <1255801805.3603.14.ca...@nsk.lan> > Content-Type: text/plain; charset="UTF-8" > > Hi, > > Le dimanche 18 octobre 2009 ? 00:58 +0800, Xiangfu Liu a ?crit : >> how about add another line in "/etc/hosts" file ? > > Useless duplication to me. I think furthermore that the FQDN is here so > that localhost doesn't become the name of a host on the default subnet > (like localhost.lan) > >> write some info in this mail, when I run mpc, it's show: >> >> r...@bennanonote:~# mpc >> error: host "localhost" not found > > Works here : > # mpc > volume: 0% repeat: off random: off single: off consume: off > > You should add /etc/hosts and /etc/resolv.conf to your bugreport, I > think. > > Regards, > Benjamin > > > > ------------------------------ > > Message: 4 > Date: Sat, 17 Oct 2009 19:52:19 +0200 > From: Jo-Philipp Wich <x...@subsignal.org> > To: OpenWrt Development List <openwrt-devel@lists.openwrt.org> > Subject: Re: [OpenWrt-Devel] vertical antenna nanostation loco > Message-ID: <4ada0453.2030...@subsignal.org> > Content-Type: text/plain; charset=ISO-8859-1 > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi. > > UBNT devices use "option antenna", rx/txantenna has no effect there. > The values for antenna can be "external", "horizontal", "vertical" or > "auto". > > ~ JoW > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkraBE8ACgkQdputYINPTPNDUQCfRTDWo9vy0lNVRRyNvpQKKtRj > aoMAnjP/UFzTlb31RDENOf2W6Gaw/rpp > =zpNJ > -----END PGP SIGNATURE----- > > > ------------------------------ > > Message: 5 > Date: Sat, 17 Oct 2009 13:57:09 -0400 > From: Outback Dingo <outbackdi...@gmail.com> > To: OpenWrt Development List <openwrt-devel@lists.openwrt.org> > Subject: Re: [OpenWrt-Devel] vertical antenna nanostation loco > Message-ID: > <5635aa0d0910171057i2a1c6fafh8a5f3bca733d3...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Well, having this conversation before, according to Ubiquiti using the > OpenWRT HAL it is not possible to change the polarization of the antenna, > due to the HAL differences, however maybe one of the devs can help to > clarify this > > On Sat, Oct 17, 2009 at 12:55 PM, Xavier Martinez < > xavier.martinez.ll...@gmail.com> wrote: > >> Hi, >> >> Recently, I've replaced my old and reliable Nanostation2 for a >> Nanostation Loco2. However, it seems that antenna selection doesn't >> work fine. I would be very pleased if someone could help in setting >> vertical antenna working in Nanostation Loco2. Under AirOS, I could >> see and link to a lot of AP when switching to vertical polarisation. >> However, when running openwrt, I've only see the same APs as in >> horizontal polarisation under AirOS. I've flashed a nanostation loco 2 >> with the latest openwrt firm from the repository. My >> /etc/config/wireless looks like this: >> >> config 'wifi-device' 'wifi0' >> option 'type' 'atheros' >> option 'disabled' '0' >> option 'channel' '6' >> option 'mode' '11b' >> option 'diversity' '0' >> option 'txpower' '20' >> option 'rxantenna' '2' >> option 'txantenna' '2' >> option 'diversity' '0' >> option 'distance' '5000' >> >> config 'wifi-iface' >> option 'device' 'wifi0' >> option 'encryption' 'none' >> option 'ssid' 'guifibages' >> option 'mode' 'adhoc' >> option 'bssid' '12:34:56:78:9A:BC' >> option 'network' 'wifi0' >> >> However, I suspect that vertical antenna is not working. I've tried >> systctl -w dev.wifi0.txantenna=1 and systctl -w dev.wifi0.rxantenna=1 >> but it doesn't work either. Looking AirOS, I've discovered that >> /proc/sys/dev/wifi0/extantenna is set to 1, I've also tried activating >> external antenna as it is described for a Nanostation2: >> >> sysctl set dev.wifi0.softled 0 >> gpioctl 7 0 >> >> with no luck. Rotating the Nanostation 90? does'nt work either. Anyone >> has succeded in making the vertical antenna work in a Nanostation >> Loco2? It is only a sensitivity problem? Why does it work in AirOS? >> >> Thanks >> >> Xavier >> _______________________________________________ >> openwrt-devel mailing list >> openwrt-devel@lists.openwrt.org >> https://lists.openwrt.org/mailman/listinfo/openwrt-devel >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20091017/a11621db/attachment-0001.html> > > ------------------------------ > > Message: 6 > Date: Sat, 17 Oct 2009 20:11:39 +0200 > From: Felix Fietkau <n...@openwrt.org> > To: OpenWrt Development List <openwrt-devel@lists.openwrt.org> > Subject: Re: [OpenWrt-Devel] vertical antenna nanostation loco > Message-ID: <4ada08db.8050...@openwrt.org> > Content-Type: text/plain; charset=ISO-8859-1 > > Outback Dingo wrote: >> Well, having this conversation before, according to Ubiquiti using the >> OpenWRT HAL it is not possible to change the polarization of the >> antenna, due to the HAL differences, however maybe one of the devs can >> help to clarify this > This has nothing to do with the HAL. All that UBNT is doing in their HAL > for external antenna selection is mess with a few GPIO pins. While going > through the GPIO settings, I noticed that the Loco2 uses different pins > than the NanoStation2. Please try this patch to see if it fixes your > issue. > > > diff --git a/package/madwifi/files/lib/wifi/madwifi.sh > b/package/madwifi/files/lib/wifi/madwifi.sh > index e7d83d3..5b066f3 100755 > --- a/package/madwifi/files/lib/wifi/madwifi.sh > +++ b/package/madwifi/files/lib/wifi/madwifi.sh > @@ -90,11 +90,20 @@ enable_atheros() { > config_get_bool softled "$device" softled 1 > > devname="$(cat /proc/sys/dev/$device/dev_name)" > - antgpio= > + local antgpio= > + local invert= > case "$devname" in > - NanoStation2) antgpio=7;; > - NanoStation5) antgpio=1;; > + NanoStation2) antgpio=7; invert=1;; > + NanoStation5) antgpio=1; invert=1;; > + NanoStation Loco2) antgpio=2;; > esac > + if [ -n "$invert" ]; then > + _set="clear" > + _clear="set" > + else > + _set="set" > + _clear="clear" > + fi > if [ -n "$antgpio" ]; then > softled=0 > config_get antenna "$device" antenna > @@ -106,14 +115,13 @@ enable_atheros() { > esac > > [ -x "$(which gpioctl 2>/dev/null)" ] || antenna= > + gpioctl "dirout" "$antgpio" >/dev/null 2>&1 > case "$antenna" in > horizontal|vertical|auto) > - gpioctl "dirout" "$antgpio" >/dev/null 2>&1 > - gpioctl "set" "$antgpio" >/dev/null 2>&1 > + gpioctl "$_clear" "$antgpio" >/dev/null 2>&1 > ;; > external) > - gpioctl "dirout" "$antgpio" >/dev/null 2>&1 > - gpioctl "clear" "$antgpio" >/dev/null 2>&1 > + gpioctl "$_set" "$antgpio" >/dev/null 2>&1 > ;; > esac > fi > > > ------------------------------ > > Message: 7 > Date: Sun, 18 Oct 2009 01:59:05 +0700 > From: Outback Dingo <outbackdi...@gmail.com> > To: OpenWrt Development List <openwrt-devel@lists.openwrt.org> > Subject: Re: [OpenWrt-Devel] vertical antenna nanostation loco > Message-ID: > <5635aa0d0910171159m7e72a40bp89c9c3232ff19...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Kinda what i figured thats why it needed clarifications, Ill run tests with > this patch also, Ive got some Locos here also, Thanks > > On Sun, Oct 18, 2009 at 1:11 AM, Felix Fietkau <n...@openwrt.org> wrote: > >> Outback Dingo wrote: >> > Well, having this conversation before, according to Ubiquiti using the >> > OpenWRT HAL it is not possible to change the polarization of the >> > antenna, due to the HAL differences, however maybe one of the devs can >> > help to clarify this >> This has nothing to do with the HAL. All that UBNT is doing in their HAL >> for external antenna selection is mess with a few GPIO pins. While going >> through the GPIO settings, I noticed that the Loco2 uses different pins >> than the NanoStation2. Please try this patch to see if it fixes your >> issue. >> >> >> diff --git a/package/madwifi/files/lib/wifi/madwifi.sh >> b/package/madwifi/files/lib/wifi/madwifi.sh >> index e7d83d3..5b066f3 100755 >> --- a/package/madwifi/files/lib/wifi/madwifi.sh >> +++ b/package/madwifi/files/lib/wifi/madwifi.sh >> @@ -90,11 +90,20 @@ enable_atheros() { >> config_get_bool softled "$device" softled 1 >> >> devname="$(cat /proc/sys/dev/$device/dev_name)" >> - antgpio= >> + local antgpio= >> + local invert= >> case "$devname" in >> - NanoStation2) antgpio=7;; >> - NanoStation5) antgpio=1;; >> + NanoStation2) antgpio=7; invert=1;; >> + NanoStation5) antgpio=1; invert=1;; >> + NanoStation Loco2) antgpio=2;; >> esac >> + if [ -n "$invert" ]; then >> + _set="clear" >> + _clear="set" >> + else >> + _set="set" >> + _clear="clear" >> + fi >> if [ -n "$antgpio" ]; then >> softled=0 >> config_get antenna "$device" antenna >> @@ -106,14 +115,13 @@ enable_atheros() { >> esac >> >> [ -x "$(which gpioctl 2>/dev/null)" ] || antenna= >> + gpioctl "dirout" "$antgpio" >/dev/null 2>&1 >> case "$antenna" in >> horizontal|vertical|auto) >> - gpioctl "dirout" "$antgpio" >/dev/null 2>&1 >> - gpioctl "set" "$antgpio" >/dev/null 2>&1 >> + gpioctl "$_clear" "$antgpio" >/dev/null >> 2>&1 >> ;; >> external) >> - gpioctl "dirout" "$antgpio" >/dev/null 2>&1 >> - gpioctl "clear" "$antgpio" >/dev/null 2>&1 >> + gpioctl "$_set" "$antgpio" >/dev/null 2>&1 >> ;; >> esac >> fi >> _______________________________________________ >> openwrt-devel mailing list >> openwrt-devel@lists.openwrt.org >> https://lists.openwrt.org/mailman/listinfo/openwrt-devel >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20091018/ffcac233/attachment.html> > > ------------------------------ > > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel > > > End of openwrt-devel Digest, Vol 46, Issue 20 > ********************************************* > _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel