I've been having a problem where restarting the userspace handling for my
wifi would make it stop working entirely. I eventually tracked this down
to the conflation of txpower.disable and rf_kill; if I make siwtxpower not
change radio_enabled, it all works as expected.
I think there are two issues:
# iwconfig iface txpower off
# echo 0 > /sys/class/net/iface/device/rf_kill
# iwconfig iface <anything>
Causes the radio to go back to being disabled, to the confusion of
userspace (or at least, me), since it's not expected that changing other
settings will kill the radio again.
Also, I think I was having a problem with:
# iwconfig iface txpower off
# iwconfig iface txpower auto
because it tries using REPLY_TX_POWER_TABLE_CMD before it unkills the
radio, but the part that's supposed to respond to that command is shut off
when the radio is killed. And it seems to fail, therefore, and then not
actually unkill the radio.
Is "txpower off" (or !radio_enabled) supposed to disable the radio
completely (such that the driver can't turn on the chipset temporarily to
configure it or get its configuration), or is it just supposed to be a
power saving measure, and not affect the availability of other operations?
-Daniel
*This .sig left intentionally blank*