I may be mistaken, but aren't ad-hoc networks peer to peer wireless? The entire ad-hoc wireless doesn't go away just becuase one node on it goes offline.

On Tue, Oct 19, 2010 at 6:26 PM, Markus Svilans <msvilans@aeonyx.ca> wrote:
 Hello,

I just found a nice solution to the WiFi issue.

1. Build a custom Overo Linux kernel with the rfkill module enabled.

I followed the instructions on the Gumstix Wiki, here:
http://gumstix.net/wiki/index.php?title=Kernel_Reconfiguration

In your kernel defconfig file, you should have these lines if rfkill is
enabled:
CONFIG_RFKILL=y
CONFIG_RFKILL_LEDS=y
CONFIG_RFKILL_INPUT=y

2. Now you can enable and disable the WiFi transmitter like this:

To disable:
echo 0 > /sys/devices/virtual/ieee80211/phy0/rfkill0/state

To enable:
echo 1 > /sys/devices/virtual/ieee80211/phy0/rfkill0/state

I could not find a way to use rfkill to enable/disable Bluetooth, however.
Does anyone know if this is possible?

Also, there seems to be no "rfkill" package available for the Gumstix,
so it's not possible to use the handy "rfkill" command line tool. The
Angstrom Linux package browser shows that it does exist, however.

Best regards,
Markus.



On 10-10-13 03:29 AM, Markus Svilans wrote:
>    Dear gumstix-users,
>
> I would like to learn how to enable and disable WiFi and Bluetooth on
> the Overo Air/Fire on the fly, while the system is running.
>
> This is for a project, where due to regulations, one of WiFi or
> Bluetooth can be used, but not both at the same time. I want to provide
> the ability for the user to toggle which wireless capability is enabled.
>
> After searching around a bit, I found the following thread:
> http://old.nabble.com/Overo-Air-bluetooth-and-wifi-power-td28775963.html
>
> I tried "echo 0>  /sys/class/gpio/gpio16/value" and it does indeed shut
> off the WiFi module. However, sending a "1" does not seem to re-enable
> it. The blue LED remains off, and after a few seconds complaints from
> libertas begin appearing on the serial console. The WiFi comes back up
> on the next reboot.
>
> What would be a good way to do this? It seems that the GPIO method
> relates to hardware only. I have a feeling that the Linux drivers have
> to be dealt with as well, but I don't know where to start.
>
> Many thanks in advance,
> Markus.
>
>
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2&  L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gumstix-users


------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users



--
Thomas Epperson
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life. - Terry Pratchett.