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 20:10:35 Ivo van Doorn wrote:
> > On Thursday 18 September 2008, Michael Buesch wrote:
> > > On Thursday 18 September 2008 19:48:27 Ivo van Doorn wrote:
> > > > Well no actually, when the radio state (software rfkill state in your words)
> > > 
> > > No, "radio state" is _not_ "software rfkill state" in my words.
> > > It's an independent state.
> > > The actual physical radio state is a combined state of the two sw and hw state bits.
> > > If either bit blocks the radio, it's physically blocked. We cannot toggle the hw bit
> > > from software.
> > 
> > Ah ok. In that case b43 should do:
> > 
> > send HW_BLOCK when the hardware rfkill state is set to block
> > send SOFT_BLOCK when the software rfkill state is set to block
> > 
> > But it shouldn't (and that change was the start of this discussion) send SOFT_BLOCK
> > when mac80211 disabled the radio.
> 
> I'm kind of confused. You say one thing and revert it right in the next sentence.

Ehm now you are confusing me.
You state that software rfkill state is not the state as requested by mac80211.

Since that is not the case b43 has 2 different methods to indicate the RFKILL state,
one is the hardware rfkill state and the second is the software rfkill state.
On top of that mac80211 sends configuration commands to b43 to set the radio state.

Configuration commands from mac80211 should _not_ trigger rfkill events since they
don't represent the RFKILL state but the RADIO state.

The RFKILL states as provided by the hardware do trigger rfkill state changes.

So apparently in b43 hardware you have 3 settings:
* radio enabled/disabled
* sw rfkill enabled/disabled
* hw rfkill enabled/disabled

The latter 2 provide RFKILL state changes when they are changed, but the first
one is the state as requested by mac80211 and thus should not generate events.

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