Search Linux Wireless

Re: [RFC] b43: A patch for control of the radio LED using rfkill

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

 



On Thursday 18 September 2008, Michael Buesch wrote:
> On Thursday 18 September 2008 19:42:28 Ivo van Doorn wrote:
> > On Thursday 18 September 2008, Michael Buesch wrote:
> > > On Thursday 18 September 2008 15:47:42 Larry Finger wrote:
> > > > Ivo van Doorn wrote:
> > > > 
> > > > > Is dev->phy.radio_on set when mac80211 has send an instruction
> > > > > to the driver to enable the radio (start() or config() callback)
> > > > > or does it represent the key state in the hardware?
> > > > > 
> > > > > If it is something coming from mac80211, then you do not want
> > > > > to send a SOFT_BLOCKED event since that will cause all other radios
> > > > > to be switched off simply because the b43 interface has not been
> > > > > enabled.
> > > > > 
> > > > > Off course when it represents the key state in the hardware then the
> > > > > code would be fine...
> > > > 
> > > > The state comes from mac80211 and is set in the config() callback.
> > > > 
> > > > What state should be sent at the point when the hardware block is
> > > > removed? It seems to me that forcing an UNBLOCKED state gives the
> > > > wrong result. Perhaps RFKILL does need to have 4 states so that an
> > > > RFKILL_STATE_HW_UNBLOCKED state can be transmitted.
> > > 
> > > If sw is unblocked, but hw is still blocked, you must not announce
> > > unblocked state to rfkill.
> > 
> > Well from my perspective:
> > Note that 'sw' is the RADIO state as requested by mac80211 and
> > 'hw' is the RFKILL state as indicated by the hardware
> > 
> > radio: block, rfkill: block => BLOCK
> > radio: block, rfkill: unblock => UNBLOCK
> 
> If the radio is physically blocked by the hardware rfkill switch,
> why on earth would we want to announce unblocked state?
> Or did I get your table wrong?

You get the table wrong.
When the user presses the RFKILL key, the RFKILL state is set to unblock.
When the user does 'ifconfig wlan0 up' or 'iwconfig wlan0 txpower on'
then the RADIO state is set to unblock.

>From your mail I understood that your interpretation of the SW RFKILL
was "radio state as requested by mac80211" and HW RFKILL was
"radio state as requested by RFKILL register in b43".

> (Still note that software and hardware states are _independent_ in b43.
> Think of it as two independent bits that can each turn the radio off, where
> the hardware state bit is readonly and is triggered by the hw-button).

I am, and this is what I am trying to preserve in rfkill. That it _does_
differentiate between the 2 states.

Ivo
--
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