diff options
Diffstat (limited to 'net/mac80211/driver-ops.h')
-rw-r--r-- | net/mac80211/driver-ops.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h index 4a0e559cb26b..6d33a0c743ab 100644 --- a/net/mac80211/driver-ops.h +++ b/net/mac80211/driver-ops.h | |||
@@ -35,6 +35,43 @@ static inline void drv_tx_frags(struct ieee80211_local *local, | |||
35 | local->ops->tx_frags(&local->hw, vif, sta, skbs); | 35 | local->ops->tx_frags(&local->hw, vif, sta, skbs); |
36 | } | 36 | } |
37 | 37 | ||
38 | static inline void drv_get_et_strings(struct ieee80211_sub_if_data *sdata, | ||
39 | u32 sset, u8 *data) | ||
40 | { | ||
41 | struct ieee80211_local *local = sdata->local; | ||
42 | if (local->ops->get_et_strings) { | ||
43 | trace_drv_get_et_strings(local, sset); | ||
44 | local->ops->get_et_strings(&local->hw, &sdata->vif, sset, data); | ||
45 | trace_drv_return_void(local); | ||
46 | } | ||
47 | } | ||
48 | |||
49 | static inline void drv_get_et_stats(struct ieee80211_sub_if_data *sdata, | ||
50 | struct ethtool_stats *stats, | ||
51 | u64 *data) | ||
52 | { | ||
53 | struct ieee80211_local *local = sdata->local; | ||
54 | if (local->ops->get_et_stats) { | ||
55 | trace_drv_get_et_stats(local); | ||
56 | local->ops->get_et_stats(&local->hw, &sdata->vif, stats, data); | ||
57 | trace_drv_return_void(local); | ||
58 | } | ||
59 | } | ||
60 | |||
61 | static inline int drv_get_et_sset_count(struct ieee80211_sub_if_data *sdata, | ||
62 | int sset) | ||
63 | { | ||
64 | struct ieee80211_local *local = sdata->local; | ||
65 | int rv = 0; | ||
66 | if (local->ops->get_et_sset_count) { | ||
67 | trace_drv_get_et_sset_count(local, sset); | ||
68 | rv = local->ops->get_et_sset_count(&local->hw, &sdata->vif, | ||
69 | sset); | ||
70 | trace_drv_return_int(local, rv); | ||
71 | } | ||
72 | return rv; | ||
73 | } | ||
74 | |||
38 | static inline int drv_start(struct ieee80211_local *local) | 75 | static inline int drv_start(struct ieee80211_local *local) |
39 | { | 76 | { |
40 | int ret; | 77 | int ret; |