summaryrefslogtreecommitdiffstats
path: root/net/mac80211/driver-ops.h
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2013-01-20 17:32:41 +0200
committerJohannes Berg <johannes.berg@intel.com>2013-01-24 15:41:29 +0100
commit887da9176e011a044b12ec0deff62df5faadd67c (patch)
treecc90391e20d8d1b25e8418abde6b10105300628c /net/mac80211/driver-ops.h
parenta65240c1013222dbf41166c8b2c5ed2720c807c3 (diff)
downloadop-kernel-dev-887da9176e011a044b12ec0deff62df5faadd67c.zip
op-kernel-dev-887da9176e011a044b12ec0deff62df5faadd67c.tar.gz
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/driver-ops.h')
-rw-r--r--net/mac80211/driver-ops.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h
index d51afbd..e75f5b9 100644
--- a/net/mac80211/driver-ops.h
+++ b/net/mac80211/driver-ops.h
@@ -845,11 +845,12 @@ static inline void drv_set_rekey_data(struct ieee80211_local *local,
}
static inline void drv_rssi_callback(struct ieee80211_local *local,
+ struct ieee80211_sub_if_data *sdata,
const enum ieee80211_rssi_event event)
{
- trace_drv_rssi_callback(local, event);
+ trace_drv_rssi_callback(local, sdata, event);
if (local->ops->rssi_callback)
- local->ops->rssi_callback(&local->hw, event);
+ local->ops->rssi_callback(&local->hw, &sdata->vif, event);
trace_drv_return_void(local);
}
OpenPOWER on IntegriCloud