diff options
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 6c4b27be35d..dda30e98aa1 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -1959,8 +1959,8 @@ static void ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata, | |||
1959 | local->hw.conf.channel->center_freq, | 1959 | local->hw.conf.channel->center_freq, |
1960 | ifsta->ssid, ifsta->ssid_len); | 1960 | ifsta->ssid, ifsta->ssid_len); |
1961 | if (bss) { | 1961 | if (bss) { |
1962 | sta->last_rssi = bss->rssi; | ||
1963 | sta->last_signal = bss->signal; | 1962 | sta->last_signal = bss->signal; |
1963 | sta->last_qual = bss->qual; | ||
1964 | sta->last_noise = bss->noise; | 1964 | sta->last_noise = bss->noise; |
1965 | ieee80211_rx_bss_put(dev, bss); | 1965 | ieee80211_rx_bss_put(dev, bss); |
1966 | } | 1966 | } |
@@ -2629,9 +2629,9 @@ static void ieee80211_rx_bss_info(struct net_device *dev, | |||
2629 | 2629 | ||
2630 | bss->timestamp = beacon_timestamp; | 2630 | bss->timestamp = beacon_timestamp; |
2631 | bss->last_update = jiffies; | 2631 | bss->last_update = jiffies; |
2632 | bss->rssi = rx_status->ssi; | ||
2633 | bss->signal = rx_status->signal; | 2632 | bss->signal = rx_status->signal; |
2634 | bss->noise = rx_status->noise; | 2633 | bss->noise = rx_status->noise; |
2634 | bss->qual = rx_status->qual; | ||
2635 | if (!beacon && !bss->probe_resp) | 2635 | if (!beacon && !bss->probe_resp) |
2636 | bss->probe_resp = true; | 2636 | bss->probe_resp = true; |
2637 | 2637 | ||
@@ -3427,9 +3427,9 @@ static int ieee80211_sta_config_auth(struct net_device *dev, | |||
3427 | !ieee80211_sta_match_ssid(ifsta, bss->ssid, bss->ssid_len)) | 3427 | !ieee80211_sta_match_ssid(ifsta, bss->ssid, bss->ssid_len)) |
3428 | continue; | 3428 | continue; |
3429 | 3429 | ||
3430 | if (!selected || top_rssi < bss->rssi) { | 3430 | if (!selected || top_rssi < bss->signal) { |
3431 | selected = bss; | 3431 | selected = bss; |
3432 | top_rssi = bss->rssi; | 3432 | top_rssi = bss->signal; |
3433 | } | 3433 | } |
3434 | } | 3434 | } |
3435 | if (selected) | 3435 | if (selected) |
@@ -4060,8 +4060,8 @@ ieee80211_sta_scan_result(struct net_device *dev, | |||
4060 | 4060 | ||
4061 | memset(&iwe, 0, sizeof(iwe)); | 4061 | memset(&iwe, 0, sizeof(iwe)); |
4062 | iwe.cmd = IWEVQUAL; | 4062 | iwe.cmd = IWEVQUAL; |
4063 | iwe.u.qual.qual = bss->signal; | 4063 | iwe.u.qual.qual = bss->qual; |
4064 | iwe.u.qual.level = bss->rssi; | 4064 | iwe.u.qual.level = bss->signal; |
4065 | iwe.u.qual.noise = bss->noise; | 4065 | iwe.u.qual.noise = bss->noise; |
4066 | iwe.u.qual.updated = local->wstats_flags; | 4066 | iwe.u.qual.updated = local->wstats_flags; |
4067 | current_ev = iwe_stream_add_event(current_ev, end_buf, &iwe, | 4067 | current_ev = iwe_stream_add_event(current_ev, end_buf, &iwe, |