Re: [OpenWrt-Devel] eth1 not working in ubiquiti nanostation m

2010-02-28 Thread Xavier Martinez
2010/2/28 ZioPRoTo (Saverio Proto) 

> > And packets are sent by the laptop but not received by the nanostation
> > according to tcpdump (attached) but they do if I use eth0 instead of eth1
> to
> > connect the laptop and the nanostation m5. Also I attach olsrd output
> with
> > -d 3.
>
> is eth1 inside the bridge ? Try without the bridge.
>

Already tried with the same results.

Thanks!


>
> Saverio
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] eth1 not working in ubiquiti nanostation m

2010-02-26 Thread Xavier Martinez
eth1 is not working anymore in current trunk (r19860). It seems to work in
previous versions (19694), at least pings are answered and ssh connection is
possible.

On the other hand, when running olsrd under r19694, packets from other hosts
in the network are not received by this interface. I verified that packets
are sent using tcpdump and reproduced the bug using different hosts, running
ubuntu 9.10, openwrt 8.09.2, etc... I tried several olsrd versions 0.5.8-r8,
0.5.8-r7, etc.. with the same results. However, ssh connections work fine
and pings are answered in all cases. When connecting neighbour host to eth0,
everything works perfect... Strange behaviour isn't it? I would appreciate
any help 'cause if we get this second ethernet port working, we would save a
lot of cable...

Thanks!

Xavier
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] nanostation 5m poe passthrough

2010-02-04 Thread Xavier Martinez
Even with my limited knowledge of programming and openwrt source
structure, I managed to define a new poe gpio device identical to the
ones controlling leds. Enabling poe passthrough is as simple as:

echo 1 > ubnt\:poe/brightness

disabling it:

echo 0 > ubnt\:poe/brightness

Maybe a developer could improve it by defining a specific poe device
for the poe passthrough.
Here is the patch for revision 19525. Tried and working on a Nanostation M5.

Signed-off-by: Xavier Martinez 

---

Index: target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c
===
--- target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c    (revision 19525)
+++ target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c    (working copy)
@@ -37,6 +37,7 @@
 #define UBNT_M_GPIO_LED_L3    11
 #define UBNT_M_GPIO_LED_L4    7
 #define UBNT_M_GPIO_BTN_RESET    12
+#define UBNT_M_GPIO_POE        8

 #define UBNT_BUTTONS_POLL_INTERVAL    20

@@ -97,6 +98,10 @@
     .name        = "ubnt:green:link4",
     .gpio        = UBNT_M_GPIO_LED_L4,
     .active_low    = 0,
+    }, {
+        .name        = "ubnt:poe",
+        .gpio        = UBNT_M_GPIO_POE,
+        .active_low    = 0,
 }
 };




2010/1/31 Xavier Martinez 
>
> Looking at AirMax software, I think that gpio pin 8 must be set to enable the 
> poe passthrough. I compiled gpioctrl with the openwrt but when I try:
>
> gpioctrl dirout 8
>
> I get the following error:
>
> Error whilst opening /dev/gpio
>
> It seems that is not recognising the gpio devices... Any ideas on this?
>
> Thanks
>
>
>>
>> Date: Sat, 30 Jan 2010 02:14:36 +0100
>> From: Xavier Martinez 
>> To: openwrt-devel@lists.openwrt.org
>> Subject: [OpenWrt-Devel] nanostation 5m poe passthrough
>> Message-ID:
>>        
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Hi,
>>
>> I'm testing Ubiquiti Nanostation 5M for using them in our
>> OLSR-under-openwrt-based mesh network. I've compiled and uploaded the latest
>> trunk 19374 and everything worked fine, even OLSR. Congratulations to all
>> developers for such a universal and updated firmware which is openwrt.
>> However, it would very interesting (and help saving a lot of CAT5 cable) to
>> enable the PoE passthrough feature included in this piece of hardware. Any
>> success on this issue?
>>
>> Thanks
>>
>> xavier_martinez
>>
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] nanostation 5m poe passthrough

2010-01-30 Thread Xavier Martinez
Looking at AirMax software, I think that gpio pin 8 must be set to enable
the poe passthrough. I compiled gpioctrl with the openwrt but when I try:

gpioctrl dirout 8

I get the following error:

Error whilst opening /dev/gpio

It seems that is not recognising the gpio devices... Any ideas on this?

Thanks



> Date: Sat, 30 Jan 2010 02:14:36 +0100
> From: Xavier Martinez 
> To: openwrt-devel@lists.openwrt.org
> Subject: [OpenWrt-Devel] nanostation 5m poe passthrough
> Message-ID:
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I'm testing Ubiquiti Nanostation 5M for using them in our
> OLSR-under-openwrt-based mesh network. I've compiled and uploaded the
> latest
> trunk 19374 and everything worked fine, even OLSR. Congratulations to all
> developers for such a universal and updated firmware which is openwrt.
> However, it would very interesting (and help saving a lot of CAT5 cable) to
> enable the PoE passthrough feature included in this piece of hardware. Any
> success on this issue?
>
> Thanks
>
> xavier_martinez
>
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] nanostation 5m poe passthrough

2010-01-29 Thread Xavier Martinez
Hi,

I'm testing Ubiquiti Nanostation 5M for using them in our
OLSR-under-openwrt-based mesh network. I've compiled and uploaded the latest
trunk 19374 and everything worked fine, even OLSR. Congratulations to all
developers for such a universal and updated firmware which is openwrt.
However, it would very interesting (and help saving a lot of CAT5 cable) to
enable the PoE passthrough feature included in this piece of hardware. Any
success on this issue?

Thanks

xavier_martinez
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] vertical antenna nanostation loco

2009-10-17 Thread Xavier Martinez
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  :
> 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 
> To: openwrt-devel@lists.openwrt.org
> Subject: [OpenWrt-Devel] vertical antenna nanostation loco
> Message-ID:
>        
> 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 
> To: OpenWrt Development List 
> 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 

[OpenWrt-Devel] vertical antenna nanostation loco

2009-10-17 Thread Xavier Martinez
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


[OpenWrt-Devel] [PATCH] Imagebuilder init scripts and select all packages by default with Imagebuilder

2008-11-08 Thread Xavier Martinez
Hi,

I'm sending a patch for the Imagebuilder Makefile in order for it to get
into the right directory when activating the init scripts.

I've also modified the Imagebuilder configuration file file because I don't
find it necessary to compile all the packages when building it. Build all
the packages takes a very long time and usually there are many errors when
compiling which stop the process and makes very difficult to obtain an
Imagebuilder.

I hope you find it useful and include it in the Openwrt development

Regards,

Xavier Martinez <[EMAIL PROTECTED]>

Index: target/imagebuilder/files/Makefile
===
--- target/imagebuilder/files/Makefile(revision 13142)
+++ target/imagebuilder/files/Makefile(working copy)
@@ -131,10 +131,10 @@
 @echo
 @echo Activating init scripts
 @( \
-cd $(BUILD_DIR)/root; \
+cd $(BUILD_DIR)/root-$(BOARD); \
 for script in ./etc/init.d/*; do \
 grep '#!/bin/sh /etc/rc.common' $$script >/dev/null ||
continue; \
-IPKG_INSTROOT=$(BUILD_DIR)/root $(which bash) ./etc/rc.common
$$script enable; \
+IPKG_INSTROOT=$(BUILD_DIR)/root-$(BOARD) $(which bash)
./etc/rc.common $$script enable; \
 done || true; \
 )

Index: target/imagebuilder/Config.in
===
--- target/imagebuilder/Config.in(revision 13142)
+++ target/imagebuilder/Config.in(working copy)
@@ -3,7 +3,6 @@
 depends !TARGET_ROOTFS_INITRAMFS
 depends !TARGET_uml
 depends !PROFILE_KCONFIG
-select ALL
 help
   This is essentially a stripped-down version of the buildroot
   with precompiled packages, kernel image and image building tools.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] openwrt-devel Digest, Vol 34, Issue 18

2008-10-21 Thread Xavier Martinez
>
> Date: Sun, 19 Oct 2008 18:18:59 +0700
> From: "Outback Dingo" <[EMAIL PROTECTED]>
> Subject: Re: [OpenWrt-Devel] Nanostation antenna selection support
> To: "OpenWrt Development List" 
> Message-ID:
><[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
>  whats the option disabled do ???
>
> config 'wifi-device' 'wifi0'
> option 'type' 'atheros'
> option 'disabled' '0'


If disabled is set to 1, the the wifi interface is disabled. It is the
default option in openwrt. But how do you set on and off both diversities?


>
>
> On Sun, Oct 19, 2008 at 5:52 PM, Xavier Martinez <
> [EMAIL PROTECTED]> wrote:
>
> > Thank you Ulf. Just one question, how do you switch on and off the
> > diversities?
> >
> >
> >
> >>
> >>
> >> Message: 1
> >> Date: Wed, 15 Oct 2008 14:18:49 +0200
> >> From: "ulf kypke" <[EMAIL PROTECTED]>
> >> Subject: Re: [OpenWrt-Devel] Nanostation antenna selection support
> >> To: "OpenWrt Development List" 
> >> Message-ID:
> >><[EMAIL PROTECTED]>
> >> Content-Type: text/plain; charset=ISO-8859-1
> >>
> >>
> >> hi, i was working with the nanostations some weeks ago,
> >> the big deal with the diversity is, that the nanostations has two
> >> diversity switches,
> >> so, as fare as i know, if diversity is complete disabled, the external
> >> antenna plug is the default one.
> >> if the first diversity in on and the second diversity switch is off,
> >> the horizontal antenna is activ,
> >> if both diversity switches are on the vertical antenna is activ.
> >>
> >>
> >> 2008/10/14 Xavier Martinez <[EMAIL PROTECTED]>:
> >> > Travis Kemen wrote:
> >> >
> >> >> If you are using the internal antenna's on a ns2 they currently work
> >> >> via the madwifi rx(tx)antenna settings but to use the external
> antenna
> >> >> you need to install gpioctl and set softled to 0 for wifi0 in sysctl,
> >> >> then use gpioctl to set pin 7 low.
> >> > I've tried this procedure to my NS2 with (openwrt trunk r12842 with
> >> gpioctl)
> >> > in a 2 km link in adhoc mode without any external annena neither
> >> > a pigtail connected to the SMA connector.
> >> >
> >> > My /etc/config/wireless looks like this:
> >> >
> >> > config 'wifi-device' 'wifi0'
> >> > option 'type' 'atheros'
> >> > option 'disabled' '0'
> >> > option 'channel' '6'
> >> > option 'mode' '11b'
> >> > option 'txantenna' '2'
> >> > option 'rxantenna' '2'
> >> > option 'distance' '5000'
> >> > option 'softled' '0'
> >> > 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' 'wlan'
> >> > option 'txpower' '16'
> >> >
> >> > Doing "gpioctl set 7" results in a Pin 7 HIGH and the pings to the
> other
> >> > machine are answered. In this case internal antenna is working. But
> when
> >> I
> >> > do a "gpioctl clear 7" resulting in a Pin 7 LOW, the pings are also
> >> > answered. In think that its impossible to establish a 2 km link
> without
> >> an
> >> > external antenna connected, so I think that internal antenna is also
> >> > working. What do you think?
> >> >
> >> > I haven't had time to try connecting an external antenna focusing the
> >> other
> >> > machine and the nanostation focusing the other side. This could
> clarify
> >> if
> >> > both antennas are working with Pin 7 LOW or only the internal antenna
> >> does.
> >> >
> >> > What do you think?
> >> > ___
> >> > openwrt-devel mailing list
> >> > openwrt-devel@lists.openwrt.org
> >> > http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> >> >
> >> >
> >>
> >
>
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Nanostation antenna selection support

2008-10-19 Thread Xavier Martinez
 Thank you Ulf. Just one question, how do you switch on and off the
diversities?



>
>
> Message: 1
> Date: Wed, 15 Oct 2008 14:18:49 +0200
> From: "ulf kypke" <[EMAIL PROTECTED]>
> Subject: Re: [OpenWrt-Devel] Nanostation antenna selection support
> To: "OpenWrt Development List" 
> Message-ID:
><[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> hi, i was working with the nanostations some weeks ago,
> the big deal with the diversity is, that the nanostations has two
> diversity switches,
> so, as fare as i know, if diversity is complete disabled, the external
> antenna plug is the default one.
> if the first diversity in on and the second diversity switch is off,
> the horizontal antenna is activ,
> if both diversity switches are on the vertical antenna is activ.
>
>
> 2008/10/14 Xavier Martinez <[EMAIL PROTECTED]>:
> > Travis Kemen wrote:
> >
> >> If you are using the internal antenna's on a ns2 they currently work
> >> via the madwifi rx(tx)antenna settings but to use the external antenna
> >> you need to install gpioctl and set softled to 0 for wifi0 in sysctl,
> >> then use gpioctl to set pin 7 low.
> > I've tried this procedure to my NS2 with (openwrt trunk r12842 with
> gpioctl)
> > in a 2 km link in adhoc mode without any external annena neither
> > a pigtail connected to the SMA connector.
> >
> > My /etc/config/wireless looks like this:
> >
> > config 'wifi-device' 'wifi0'
> > option 'type' 'atheros'
> > option 'disabled' '0'
> > option 'channel' '6'
> > option 'mode' '11b'
> > option 'txantenna' '2'
> > option 'rxantenna' '2'
> > option 'distance' '5000'
> > option 'softled' '0'
> > 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' 'wlan'
> > option 'txpower' '16'
> >
> > Doing "gpioctl set 7" results in a Pin 7 HIGH and the pings to the other
> > machine are answered. In this case internal antenna is working. But when
> I
> > do a "gpioctl clear 7" resulting in a Pin 7 LOW, the pings are also
> > answered. In think that its impossible to establish a 2 km link without
> an
> > external antenna connected, so I think that internal antenna is also
> > working. What do you think?
> >
> > I haven't had time to try connecting an external antenna focusing the
> other
> > machine and the nanostation focusing the other side. This could clarify
> if
> > both antennas are working with Pin 7 LOW or only the internal antenna
> does.
> >
> > What do you think?
> > ___
> > openwrt-devel mailing list
> > openwrt-devel@lists.openwrt.org
> > http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> >
> >
>
>
> --
>
> Message: 2
> Date: Wed, 15 Oct 2008 23:32:20 -0400
> From: "Brian J. Murrell" <[EMAIL PROTECTED]>
> Subject: [OpenWrt-Devel] 2.6.25.7 and b43 driver oops
> To: openwrt-devel@lists.openwrt.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
>
> I'm using kernel 2.25.7, compat-wireless-2008-08-06 but whenever I
> insmod the b43 driver I get the following:
>
> b43-phy0: Broadcom 4318 WLAN found
> b43-phy0 debug: Found PHY: Analog 3, Type 2, Revision 7
> Data bus error, epc == 8011635c, ra == 8015dfe4
> Oops[#1]:
> Cpu 0
> $ 0   :  1000d800 81c52454 8015ddd4
> $ 4   : c3f8 81c52454 0001 
> $ 8   : 80257f40 8025 802a 802a
> $12   : 802a  80298588 802985a8
> $16   : 81c52400 81c52454 03f8 0002
> $20   : c02bd000 0007 c02e9090 0001
> $24   : 80ea1b78 000186a0
> $28   : 80ea 80ea1cb8 80ef4d80 8015dfe4
> Hi: 003d08db
> Lo: c5476300
> epc   : 8011635c Not tainted
> ra: 8015dfe4 Status: 1000d803KERNEL EXL IE
> Cause : 0080001c
> PrId  : 00029006 (Broadcom BCM3302)
> Modules linked in: b43(+) cls_u32 sch_sfq sch_

Re: [OpenWrt-Devel] Nanostation antenna selection support

2008-10-14 Thread Xavier Martinez
Travis Kemen wrote:

> If you are using the internal antenna's on a ns2 they currently work
> via the madwifi rx(tx)antenna settings but to use the external antenna
> you need to install gpioctl and set softled to 0 for wifi0 in sysctl,
> then use gpioctl to set pin 7 low.
I've tried this procedure to my NS2 with (openwrt trunk r12842 with gpioctl)
in a 2 km link in adhoc mode without any external annena neither
a pigtail connected to the SMA connector.

My /etc/config/wireless looks like this:

config 'wifi-device' 'wifi0'
option 'type' 'atheros'
option 'disabled' '0'
option 'channel' '6'
option 'mode' '11b'
option 'txantenna' '2'
option 'rxantenna' '2'
option 'distance' '5000'
option 'softled' '0'
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' 'wlan'
option 'txpower' '16'

Doing "gpioctl set 7" results in a Pin 7 HIGH and the pings to the other
machine are answered. In this case internal antenna is working. But when I
do a "gpioctl clear 7" resulting in a Pin 7 LOW, the pings are also
answered. In think that its impossible to establish a 2 km link without an
external antenna connected, so I think that internal antenna is also
working. What do you think?

I haven't had time to try connecting an external antenna focusing the other
machine and the nanostation focusing the other side. This could clarify if
both antennas are working with Pin 7 LOW or only the internal antenna does.

What do you think?
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel