mac80211: Allow drivers to differentiate between ROC types
Some devices can handle remain on channel requests differently based on the request type/priority. Add support to differentiate between different ROC types, i.e., indicate that the ROC is required for sending managment frames. Signed-off-by: Ilan Peer <ilan.peer@intel.com> Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Este cometimento está contido em:

cometido por
Johannes Berg

ascendente
f62fab735e
cometimento
d339d5ca8e
@@ -1042,15 +1042,17 @@ TRACE_EVENT(drv_remain_on_channel,
|
||||
TP_PROTO(struct ieee80211_local *local,
|
||||
struct ieee80211_sub_if_data *sdata,
|
||||
struct ieee80211_channel *chan,
|
||||
unsigned int duration),
|
||||
unsigned int duration,
|
||||
enum ieee80211_roc_type type),
|
||||
|
||||
TP_ARGS(local, sdata, chan, duration),
|
||||
TP_ARGS(local, sdata, chan, duration, type),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
LOCAL_ENTRY
|
||||
VIF_ENTRY
|
||||
__field(int, center_freq)
|
||||
__field(unsigned int, duration)
|
||||
__field(u32, type)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
@@ -1058,12 +1060,13 @@ TRACE_EVENT(drv_remain_on_channel,
|
||||
VIF_ASSIGN;
|
||||
__entry->center_freq = chan->center_freq;
|
||||
__entry->duration = duration;
|
||||
__entry->type = type;
|
||||
),
|
||||
|
||||
TP_printk(
|
||||
LOCAL_PR_FMT VIF_PR_FMT " freq:%dMHz duration:%dms",
|
||||
LOCAL_PR_FMT VIF_PR_FMT " freq:%dMHz duration:%dms type=%d",
|
||||
LOCAL_PR_ARG, VIF_PR_ARG,
|
||||
__entry->center_freq, __entry->duration
|
||||
__entry->center_freq, __entry->duration, __entry->type
|
||||
)
|
||||
);
|
||||
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador