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>
This commit is contained in:
committed by
Johannes Berg
parent
2c158887f1
commit
a818292952
@@ -1256,28 +1256,28 @@ TRACE_EVENT(drv_set_rekey_data,
|
||||
LOCAL_PR_ARG, VIF_PR_ARG)
|
||||
);
|
||||
|
||||
TRACE_EVENT(drv_rssi_callback,
|
||||
TRACE_EVENT(drv_event_callback,
|
||||
TP_PROTO(struct ieee80211_local *local,
|
||||
struct ieee80211_sub_if_data *sdata,
|
||||
enum ieee80211_rssi_event rssi_event),
|
||||
const struct ieee80211_event *_event),
|
||||
|
||||
TP_ARGS(local, sdata, rssi_event),
|
||||
TP_ARGS(local, sdata, _event),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
LOCAL_ENTRY
|
||||
VIF_ENTRY
|
||||
__field(u32, rssi_event)
|
||||
__field(u32, type)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
LOCAL_ASSIGN;
|
||||
VIF_ASSIGN;
|
||||
__entry->rssi_event = rssi_event;
|
||||
__entry->type = _event->type;
|
||||
),
|
||||
|
||||
TP_printk(
|
||||
LOCAL_PR_FMT VIF_PR_FMT " rssi_event:%d",
|
||||
LOCAL_PR_ARG, VIF_PR_ARG, __entry->rssi_event
|
||||
LOCAL_PR_FMT VIF_PR_FMT " event:%d",
|
||||
LOCAL_PR_ARG, VIF_PR_ARG, __entry->type
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user