diff options
author | John W. Linville <linville@tuxdriver.com> | 2009-12-08 17:10:13 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-09 15:10:08 -0500 |
commit | 19deffbeba930030cfaf000b920333c6ba99ad52 (patch) | |
tree | 3d014a0815c83124d428f68bc4135e13a873cbdc /net/mac80211 | |
parent | d55fb891f9da8ee17374349ff482b2715623b7e5 (diff) | |
download | kernel_samsung_smdk4412-19deffbeba930030cfaf000b920333c6ba99ad52.zip kernel_samsung_smdk4412-19deffbeba930030cfaf000b920333c6ba99ad52.tar.gz kernel_samsung_smdk4412-19deffbeba930030cfaf000b920333c6ba99ad52.tar.bz2 |
wireless: correctly report signal value for IEEE80211_HW_SIGNAL_UNSPEC
This part was missed in "cfg80211: implement get_wireless_stats",
probably because sta_set_sinfo already existed and was only handling
dBm signals.
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | 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; } |