On Fri, November 30, 2007 18:39, Stefan Pampel wrote:
> wifi cards based on atheros chips running with madwifi-drivers[1] can't
> diabled by pressing Fn-F5. This comes through a different structure in
> /sys/class/net/[DEVICE]/* . The script /etc/acpi/ibm-wireless.sh calls
> a function called toggleAllWirelessStates in the file
> /usr/share/acpi-support/state-funcs which normaly does the on/off
> switch. The function gather information out of
>       /sys/class/net/[DEVICE]/device/power/state
>       or
>       /sys/class/net/[DEVICE]/device/rf_kill
> '0' for off and '1' for on. The madwifi-driver puts the power in fo in a
> different place
>       /sys/class/net/[DEVICE]/operstate
> with 'up' and 'down' .
>
> Changing the function toggleAllWirelessStates can help to fix this, see
> the attached patch.

Hi Stefan,

Thanks for contributing. Next time when you send a patch, please make sure
you don't change any whitespace (tabs!) on the lines that you don't touch,
I had to rediff this to be able to properly review the patch!

As for the patch, do I understand it correctly that with madwifi the
ifup/ifdown state corresponds to killing the wireless radio?

Cheers,
Bart


Reply via email to