nl80211: modify TID-config API
Make some changes to the TID-config API: * use u16 in nl80211 (only, and restrict to using 8 bits for now), to avoid issues in the future if we ever want to use higher TIDs. * reject empty TIDs mask (via netlink policy) * change feature advertising to not use extended feature flags but have own mechanism for this, which simplifies the code * fix all variable names from 'tid' to 'tids' since it's a mask * change to cfg80211_ name prefixes, not ieee80211_ * fix some minor docs/spelling things. Change-Id: Ia234d464b3f914cdeab82f540e018855be580dce Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -3482,7 +3482,7 @@ TRACE_EVENT(rdev_probe_mesh_link,
|
||||
|
||||
TRACE_EVENT(rdev_set_tid_config,
|
||||
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
||||
struct ieee80211_tid_config *tid_conf),
|
||||
struct cfg80211_tid_config *tid_conf),
|
||||
TP_ARGS(wiphy, netdev, tid_conf),
|
||||
TP_STRUCT__entry(
|
||||
WIPHY_ENTRY
|
||||
@@ -3500,22 +3500,22 @@ TRACE_EVENT(rdev_set_tid_config,
|
||||
|
||||
TRACE_EVENT(rdev_reset_tid_config,
|
||||
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
||||
const u8 *peer, u8 tid),
|
||||
TP_ARGS(wiphy, netdev, peer, tid),
|
||||
const u8 *peer, u8 tids),
|
||||
TP_ARGS(wiphy, netdev, peer, tids),
|
||||
TP_STRUCT__entry(
|
||||
WIPHY_ENTRY
|
||||
NETDEV_ENTRY
|
||||
MAC_ENTRY(peer)
|
||||
__field(u8, tid)
|
||||
__field(u8, tids)
|
||||
),
|
||||
TP_fast_assign(
|
||||
WIPHY_ASSIGN;
|
||||
NETDEV_ASSIGN;
|
||||
MAC_ASSIGN(peer, peer);
|
||||
__entry->tid = tid;
|
||||
__entry->tids = tids;
|
||||
),
|
||||
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT ", tid: %u",
|
||||
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->tid)
|
||||
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT ", tids: 0x%x",
|
||||
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->tids)
|
||||
);
|
||||
#endif /* !__RDEV_OPS_TRACE || TRACE_HEADER_MULTI_READ */
|
||||
|
||||
|
Reference in New Issue
Block a user