diff options
author | Ben Greear <greearb@candelatech.com> | 2012-04-23 15:50:29 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-05-08 21:53:49 -0400 |
commit | d61992182e41e1beec0507fd7bce4ba1face12d6 (patch) | |
tree | dab94e062e0793a5f8a7cf54d336866f9aca0328 /include | |
parent | 35e7adaaf6932c5ffb22c6ec521734434c65adc5 (diff) |
cfg80211: Add framework to support ethtool stats.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/cfg80211.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 815dc3f37e2b..27f956101bbd 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -1514,6 +1514,16 @@ struct cfg80211_gtk_rekey_data { | |||
1514 | * later passes to cfg80211_probe_status(). | 1514 | * later passes to cfg80211_probe_status(). |
1515 | * | 1515 | * |
1516 | * @set_noack_map: Set the NoAck Map for the TIDs. | 1516 | * @set_noack_map: Set the NoAck Map for the TIDs. |
1517 | * | ||
1518 | * @get_et_sset_count: Ethtool API to get string-set count. | ||
1519 | * See @ethtool_ops.get_sset_count | ||
1520 | * | ||
1521 | * @get_et_stats: Ethtool API to get a set of u64 stats. | ||
1522 | * See @ethtool_ops.get_ethtool_stats | ||
1523 | * | ||
1524 | * @get_et_strings: Ethtool API to get a set of strings to describe stats | ||
1525 | * and perhaps other supported types of ethtool data-sets. | ||
1526 | * See @ethtool_ops.get_strings | ||
1517 | */ | 1527 | */ |
1518 | struct cfg80211_ops { | 1528 | struct cfg80211_ops { |
1519 | int (*suspend)(struct wiphy *wiphy, struct cfg80211_wowlan *wow); | 1529 | int (*suspend)(struct wiphy *wiphy, struct cfg80211_wowlan *wow); |
@@ -1712,6 +1722,13 @@ struct cfg80211_ops { | |||
1712 | 1722 | ||
1713 | struct ieee80211_channel *(*get_channel)(struct wiphy *wiphy, | 1723 | struct ieee80211_channel *(*get_channel)(struct wiphy *wiphy, |
1714 | enum nl80211_channel_type *type); | 1724 | enum nl80211_channel_type *type); |
1725 | |||
1726 | int (*get_et_sset_count)(struct wiphy *wiphy, | ||
1727 | struct net_device *dev, int sset); | ||
1728 | void (*get_et_stats)(struct wiphy *wiphy, struct net_device *dev, | ||
1729 | struct ethtool_stats *stats, u64 *data); | ||
1730 | void (*get_et_strings)(struct wiphy *wiphy, struct net_device *dev, | ||
1731 | u32 sset, u8 *data); | ||
1715 | }; | 1732 | }; |
1716 | 1733 | ||
1717 | /* | 1734 | /* |