You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
mac80211: make remain_on_channel() op pass vif param
Drivers (e.g. wl12xx) might need to know the vif to roc on (mainly in order to configure the rx filters correctly). Add the vif to the op params, and update the current users (iwlwifi) to use the new api. Signed-off-by: Eliad Peller <eliad@wizery.com> [fix hwsim] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
committed by
Johannes Berg
parent
3475b0946b
commit
4988456862
@@ -1019,13 +1019,16 @@ TRACE_EVENT(drv_get_antenna,
|
||||
);
|
||||
|
||||
TRACE_EVENT(drv_remain_on_channel,
|
||||
TP_PROTO(struct ieee80211_local *local, struct ieee80211_channel *chan,
|
||||
TP_PROTO(struct ieee80211_local *local,
|
||||
struct ieee80211_sub_if_data *sdata,
|
||||
struct ieee80211_channel *chan,
|
||||
enum nl80211_channel_type chantype, unsigned int duration),
|
||||
|
||||
TP_ARGS(local, chan, chantype, duration),
|
||||
TP_ARGS(local, sdata, chan, chantype, duration),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
LOCAL_ENTRY
|
||||
VIF_ENTRY
|
||||
__field(int, center_freq)
|
||||
__field(int, channel_type)
|
||||
__field(unsigned int, duration)
|
||||
@@ -1033,14 +1036,16 @@ TRACE_EVENT(drv_remain_on_channel,
|
||||
|
||||
TP_fast_assign(
|
||||
LOCAL_ASSIGN;
|
||||
VIF_ASSIGN;
|
||||
__entry->center_freq = chan->center_freq;
|
||||
__entry->channel_type = chantype;
|
||||
__entry->duration = duration;
|
||||
),
|
||||
|
||||
TP_printk(
|
||||
LOCAL_PR_FMT " freq:%dMHz duration:%dms",
|
||||
LOCAL_PR_ARG, __entry->center_freq, __entry->duration
|
||||
LOCAL_PR_FMT VIF_PR_FMT " freq:%dMHz duration:%dms",
|
||||
LOCAL_PR_ARG, VIF_PR_ARG,
|
||||
__entry->center_freq, __entry->duration
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user