aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2013-01-20 10:32:41 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-01-24 09:41:29 -0500
commit887da9176e011a044b12ec0deff62df5faadd67c (patch)
treecc90391e20d8d1b25e8418abde6b10105300628c /net/mac80211/mlme.c
parenta65240c1013222dbf41166c8b2c5ed2720c807c3 (diff)
mac80211: provide the vif in rssi_callback
Since drivers can support several BSS / P2P Client interfaces, the rssi callback needs to inform the driver about the interface teh rssi event relates to. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 2d9ef20cd38d..344ef7d47c1a 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -2604,12 +2604,12 @@ static void ieee80211_rx_mgmt_beacon(struct ieee80211_sub_if_data *sdata,
2604 if (sig > ifmgd->rssi_max_thold && 2604 if (sig > ifmgd->rssi_max_thold &&
2605 (last_sig <= ifmgd->rssi_min_thold || last_sig == 0)) { 2605 (last_sig <= ifmgd->rssi_min_thold || last_sig == 0)) {
2606 ifmgd->last_ave_beacon_signal = sig; 2606 ifmgd->last_ave_beacon_signal = sig;
2607 drv_rssi_callback(local, RSSI_EVENT_HIGH); 2607 drv_rssi_callback(local, sdata, RSSI_EVENT_HIGH);
2608 } else if (sig < ifmgd->rssi_min_thold && 2608 } else if (sig < ifmgd->rssi_min_thold &&
2609 (last_sig >= ifmgd->rssi_max_thold || 2609 (last_sig >= ifmgd->rssi_max_thold ||
2610 last_sig == 0)) { 2610 last_sig == 0)) {
2611 ifmgd->last_ave_beacon_signal = sig; 2611 ifmgd->last_ave_beacon_signal = sig;
2612 drv_rssi_callback(local, RSSI_EVENT_LOW); 2612 drv_rssi_callback(local, sdata, RSSI_EVENT_LOW);
2613 } 2613 }
2614 } 2614 }
2615 2615