Hi,

I'm using "ifup wlan0" and "ifdown wlan0"

Bill


2010/10/13 Markus Svilans <msvilans@aeonyx.ca>
 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



--
--------------------------------------------------
Bill Södermark
Mobilen +46 706 58 27 10
-------------------------------------------------