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, Dec 01, 2008 at 04:59:11PM +0100, Marcel Holtmann wrote:
> Hi Helmut,
> 
> > > > > Nevertheless, I'm wondering if the current behaviour (even with the patch above)
> > > > > makes much sense. I mean, the user space cannot rely on the rfkill state
> > > > > unless an appropriate interface is up. As the device is able to report the
> > > > > killswitch state without firmware being loaded the following approach could
> > > > > be feasible:
> > > > > - iwl_pci_probe enables the device and enables the interrupts
> > > > > - iwl_mac_start just loads the firmware
> > > > > - iwl_mac_stop just releases the firmware but leaves the interrupts enabled
> > > > 
> > > > In 3495  rfkill interrupt is not available and rfkill state is
> > > > delivered only when firmware is loaded, therefore this is not
> > > > possible to bring device down and also expect rfill switch event.
> > > > There were few threads about this subject.
> > > > In 4965 and 5000 this will work
> > > 
> > > do we unregister the rfkill switch when bringing the adapter down.
> > 
> > No.
> > 
> > > If not, then we might should do that. I don't see a point in exposing a
> > > rfkill switch if we can't do anything with it.

I think this is a good suggestion.

> > Either that, or make the rfkill usable even when the interface is down.
> 
> if the hardware/firmware doesn't allow us to do so, we have no real
> option. I think that nobody thought about this use case so far. I am not
> sure if we should unregister it or just fix rfkill to add an invalid
> state. It is also possible to tie rfkill with ifup/ifdown.

I don't see much point in an invalid state -- just deregister as you
suggested above.

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?

John
-- 
John W. Linville		Linux should be at the core
linville@xxxxxxxxxxxxx			of your literate lifestyle.
--
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