Search Linux Wireless

Re: iwlwifi - rfkill only works if the interface is up

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2008-12-01 at 22:50 +0100, Helmut Schaa wrote:
> Am Montag, 1. Dezember 2008 schrieb John W. Linville:
> > FWIW, I'm not sure what the point of checking rfkill state would be if the
> > adapter is down anyway.  Hmmm...maybe management of the rfkill LED?
> 
> The main intention was that user space programs might want to listen to rfkill
> events in order to bring the interface up once the killswitch is disabled.
> 
> AFAIK NetworkManager takes an interface down once it recognises that the
> device is disabled through a killswitch. If the device is not able to notify
> a rfkill state change if it is down NM cannot recognise when the device can
> be brought up again.
> 
> Dan, is that correct?

Yes, but *only* because the rfkill layer < 2.6.27 (and still HAL
doesn't) didn't have any support for SOFT_BLOCK.  Once HAL grows support
for 3 states (HW_BLOCK, SW_BLOCK, UNBLOCKED) in its killswitch objects,
then I'll:

1) switch NM over to use SOFT_BLOCK when "disabling wireless", or if
there is no killswitch then just turn off the TX power with SIOCSIWTXPOW

2) Not take the interface down at all, but ensure that rfkill has
occurred

The only reason that NM takes the interface down is that previously,
this was the way to ensure that the radio was not transmitting.
Unfortunately, that also unloads firmware on iwl3945, meaning that the
3945 (and thus NM) cannot detect unblocking of the 3945 radio.

The reason we cannot use SIOCSIWTXPOW today is that with ipw2100,
ipw2200, and ipw2915, HAL reports that the radio is HW_BLOCKed and thus
there's no way to know that the radio can be unblocked via software
(like the applet menu).

Dan


--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux