diff options
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index b51eb49d8525..de3268c7be1e 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -1043,7 +1043,7 @@ static void ieee80211_set_associated(struct ieee80211_sub_if_data *sdata, | |||
1043 | bss_info_changed |= BSS_CHANGED_BSSID; | 1043 | bss_info_changed |= BSS_CHANGED_BSSID; |
1044 | 1044 | ||
1045 | /* Tell the driver to monitor connection quality (if supported) */ | 1045 | /* Tell the driver to monitor connection quality (if supported) */ |
1046 | if ((local->hw.flags & IEEE80211_HW_SUPPORTS_CQM_RSSI) && | 1046 | if (sdata->vif.driver_flags & IEEE80211_VIF_SUPPORTS_CQM_RSSI && |
1047 | bss_conf->cqm_rssi_thold) | 1047 | bss_conf->cqm_rssi_thold) |
1048 | bss_info_changed |= BSS_CHANGED_CQM; | 1048 | bss_info_changed |= BSS_CHANGED_CQM; |
1049 | 1049 | ||
@@ -1882,7 +1882,7 @@ static void ieee80211_rx_mgmt_beacon(struct ieee80211_sub_if_data *sdata, | |||
1882 | 1882 | ||
1883 | if (bss_conf->cqm_rssi_thold && | 1883 | if (bss_conf->cqm_rssi_thold && |
1884 | ifmgd->count_beacon_signal >= IEEE80211_SIGNAL_AVE_MIN_COUNT && | 1884 | ifmgd->count_beacon_signal >= IEEE80211_SIGNAL_AVE_MIN_COUNT && |
1885 | !(local->hw.flags & IEEE80211_HW_SUPPORTS_CQM_RSSI)) { | 1885 | !(sdata->vif.driver_flags & IEEE80211_VIF_SUPPORTS_CQM_RSSI)) { |
1886 | int sig = ifmgd->ave_beacon_signal / 16; | 1886 | int sig = ifmgd->ave_beacon_signal / 16; |
1887 | int last_event = ifmgd->last_cqm_event_signal; | 1887 | int last_event = ifmgd->last_cqm_event_signal; |
1888 | int thold = bss_conf->cqm_rssi_thold; | 1888 | int thold = bss_conf->cqm_rssi_thold; |