mac80211: convert rssi_callback() to event_callback()

We will be able to add more events, such as MLME events and
others. The low level driver may be interested in knowing
about these events to dump firmware data upon failures, or
to change parameters in case connection attempts fail etc...

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Цей коміт міститься в:
Emmanuel Grumbach
2015-03-16 23:23:34 +02:00
зафіксовано Johannes Berg
джерело 2c158887f1
коміт a818292952
8 змінених файлів з 71 додано та 35 видалено

Переглянути файл

@@ -941,13 +941,13 @@ static inline void drv_set_rekey_data(struct ieee80211_local *local,
trace_drv_return_void(local);
}
static inline void drv_rssi_callback(struct ieee80211_local *local,
struct ieee80211_sub_if_data *sdata,
const enum ieee80211_rssi_event event)
static inline void drv_event_callback(struct ieee80211_local *local,
struct ieee80211_sub_if_data *sdata,
const struct ieee80211_event *event)
{
trace_drv_rssi_callback(local, sdata, event);
if (local->ops->rssi_callback)
local->ops->rssi_callback(&local->hw, &sdata->vif, event);
trace_drv_event_callback(local, sdata, event);
if (local->ops->event_callback)
local->ops->event_callback(&local->hw, &sdata->vif, event);
trace_drv_return_void(local);
}