Search Linux Wireless

Re: [PATCH] mac80211: Add radio led trigger

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

 



On Jan 6, 2008 8:25 PM, Ivo van Doorn <ivdoorn@xxxxxxxxx> wrote:
>
> On Sunday 06 January 2008, Tomas Winkler wrote:
> > On Jan 6, 2008 3:10 PM, Ivo van Doorn <ivdoorn@xxxxxxxxx> wrote:
> > > Some devices have a seperate LED which indicates if the radio is
> > > enabled or not. This adds a LED trigger to mac80211 where drivers
> > > can hook into when they are interested in radio status changes.
> > >
> > >
> > I wonder how this go together with RF KILL led?
>
> They would be competing I fear, but not all devices have a rfkill button,
> which makes the mac80211 radio led trigger more usefull I think.
>
What inquires me is  in the following snippet is  would you lit the
led if even if rfkill HW switch is on?
--- a/net/mac80211/ieee80211.c
+++ b/net/mac80211/ieee80211.c
@@ -219,6 +219,7 @@ static int ieee80211_open(struct net_device *dev)
               if (res)
                       return res;
               ieee80211_hw_config(local);
+               ieee80211_led_radio(local, 1);
       }


Thanks
Tomas
> 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