Search Linux Wireless

Re: [PATCH] wireless: correctly report signal value for IEEE80211_HW_SIGNAL_UNSPEC

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

 



On Tue, 2009-12-08 at 17:15 -0500, John W. Linville wrote:
> This part was missed in "cfg80211: implement get_wireless_stats",
> probably because sta_set_sinfo already existed and was only handling
> dBm signals.

Now I do have to wonder how you found this, but yeah, looks right to me.

johannes

> Signed-off-by: John W. Linville <linville@xxxxxxxxxxxxx>
> ---
>  net/mac80211/cfg.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
> index 93ee1fd..6dc3579 100644
> --- a/net/mac80211/cfg.c
> +++ b/net/mac80211/cfg.c
> @@ -354,7 +354,8 @@ static void sta_set_sinfo(struct sta_info *sta, struct station_info *sinfo)
>  	sinfo->rx_packets = sta->rx_packets;
>  	sinfo->tx_packets = sta->tx_packets;
>  
> -	if (sta->local->hw.flags & IEEE80211_HW_SIGNAL_DBM) {
> +	if ((sta->local->hw.flags & IEEE80211_HW_SIGNAL_DBM) ||
> +	    (sta->local->hw.flags & IEEE80211_HW_SIGNAL_UNSPEC)) {
>  		sinfo->filled |= STATION_INFO_SIGNAL;
>  		sinfo->signal = (s8)sta->last_signal;
>  	}

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