isAnyWirelessPoweredOn assumes deprecated device/power/state

Bug #179451 reported by Steve Langasek
2
Affects Status Importance Assigned to Milestone
acpi-support (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: acpi-support

/usr/share/acpi-support/state-funcs in hardy currently has an isAnyWirelessPoweredOn() function that reads:

[...]
    for DEVICE in /sys/class/net/* ; do
        if [ -d $DEVICE/wireless -a -r $DEVICE/device/power/state ] ; then
            # If any of the wireless devices are turned on then return success
            if [ "`cat $DEVICE/device/power/state`" -eq 0 ] ; then
[...]

however, /sys/class/net/device/power/state appears to be deprecated (indeed, the toggleAllWirelessStates() function farther down uses it only as a fallback if rf_kill is not present), and does not exist at all for my 3945 device with amd64 2.6.24-2-generic and the iwl3945 driver. This results in isAnyWirelessPoweredOn() always returning 1 on my system, causing /etc/acpi/ibm-wireless.sh to misbehave.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.