What is the proper way to turn wlan on/off? Other wlan questions.

Andy Green andy at openmoko.com
Thu Dec 18 22:08:57 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Somebody in the thread at some point said:
| Andy Green wrote:
|> But I'm not willing to cede all decisions about our product to
|> each upstream sort of mindlessly like you are there.
|
| You may be surprised to find that I actually did ask myself to what
| extent we care about upstream in this case.

I am surprised given what you've said in the past :-)

| I took it as a hint that, given that we have already have six
| interfaces that affect WLAN power in one way or another and still
| can't give a simple answer to what seems to be a simple question,
| "do it just because we can" doesn't seem to be an efficient policy
| when it comes to actually providing a solution in this case.
|
| For those who haven't kept count, here are the options:
|
| 1) SIOCSIWTXPOW
| 2) AR6000_IOCTL_EXTENDED/AR6000_XIOCTRL_WMI_SET_WLAN_STATE
| 3) sysfs power_on
| 4) global suspend/resume
| 5) module load/unload
| 6) bind/unbind
| 7) rfkill

With rfkill we can retire the sysfs one entirely (since we found out in
the meanwhile it doesn't do anything useful), the IOCTL one and the
wmiblah applet aren't needed by mortal users then either.

suspend / module / bind-unbind can be said of almost anything anyway.

So... rfkill will bring healing and sanity to WLAN power interface...
let's do it :-)

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAklKu+gACgkQOjLpvpq7dMr8UQCaAtkUL+xDDykBoVdrdSWQuUxC
/lYAnAv1J7JTSuy8nArM9rJUGLxwIa+4
=xnW0
-----END PGP SIGNATURE-----



More information about the openmoko-kernel mailing list