Search Linux Wireless

Re: [PATCH 1/1] mac80211: fix led behavior in IBSS

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

 



On Mon, 2008-09-22 at 17:10 +0300, Tomas Winkler wrote:
> From: Emmanuel Grumbach <emmanuel.grumbach@xxxxxxxxx>
> 
> This patch fixes the led behavior in IBSS. After we joined an IBSS cell we
> need to inform the led that we got associated. Although there is no 802.11
> association in IBSS mode, the semantic of "There is a link" is relevant.
> This allows the led to blink in IBSS mode (at least this solves a bug for
> iwlwifi).

Doesn't it also have to be turned off again at some point? Or is that
done? Other than that looks fine to me.

> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@xxxxxxxxx>
> Reviewed-by: Tomas Winkler <tomas.winkler@xxxxxxxxx>
> ---
>  net/mac80211/mlme.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
> index 2e55208..2bae226 100644
> --- a/net/mac80211/mlme.c
> +++ b/net/mac80211/mlme.c
> @@ -1483,6 +1483,8 @@ static int ieee80211_sta_join_ibss(struct ieee80211_sub_if_data *sdata,
>  	ifsta->state = IEEE80211_STA_MLME_IBSS_JOINED;
>  	mod_timer(&ifsta->timer, jiffies + IEEE80211_IBSS_MERGE_INTERVAL);
>  
> +	ieee80211_led_assoc(local, true);
> +
>  	memset(&wrqu, 0, sizeof(wrqu));
>  	memcpy(wrqu.ap_addr.sa_data, bss->bssid, ETH_ALEN);
>  	wireless_send_event(sdata->dev, SIOCGIWAP, &wrqu, NULL);

Attachment: signature.asc
Description: This is a digitally signed message part


[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