From: Johannes Berg <johannes.berg@xxxxxxxxx> The station signal can currently only be reported in dBm, so don't report it at all if we only have unspecified units from the device. Cc: stable@xxxxxxxxxx Reported-by: Cristian Morales Vega <cristian@xxxxxxxxxxxx> Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> --- net/mac80211/cfg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/net/mac80211/cfg.c 2012-03-10 09:17:06.000000000 +0100 +++ b/net/mac80211/cfg.c 2012-03-15 15:14:01.000000000 +0100 @@ -385,8 +385,7 @@ static void sta_set_sinfo(struct sta_inf sinfo->rx_dropped_misc = sta->rx_dropped; sinfo->beacon_loss_count = sta->beacon_loss_count; - if ((sta->local->hw.flags & IEEE80211_HW_SIGNAL_DBM) || - (sta->local->hw.flags & IEEE80211_HW_SIGNAL_UNSPEC)) { + if (sta->local->hw.flags & IEEE80211_HW_SIGNAL_DBM) { sinfo->filled |= STATION_INFO_SIGNAL | STATION_INFO_SIGNAL_AVG; sinfo->signal = (s8)sta->last_signal; sinfo->signal_avg = (s8) -ewma_read(&sta->avg_signal); -- 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