diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-11-14 11:14:00 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-01-08 09:28:00 -0500 |
commit | cf5ead822d5db2d276616ccca91f00eb3b855db2 (patch) | |
tree | 87568dbd398d139376a8fce358f4c176d31ad5ca /include/net/cfg80211.h | |
parent | 052536abfa9144566599a7fbe8cc89e1086fa9a7 (diff) |
cfg80211: allow including station info in delete event
When a station is removed, its statistics may be interesting to
userspace, for example for further aggregation of statistics of
all stations that ever connected to an AP.
Introduce a new cfg80211_del_sta_sinfo() function (and make the
cfg80211_del_sta() a static inline calling it) to allow passing
a struct station_info along with this, and send the data in the
nl80211 event message.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index f94f0d486d13..42e3d74f1906 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -4592,13 +4592,27 @@ void cfg80211_new_sta(struct net_device *dev, const u8 *mac_addr, | |||
4592 | struct station_info *sinfo, gfp_t gfp); | 4592 | struct station_info *sinfo, gfp_t gfp); |
4593 | 4593 | ||
4594 | /** | 4594 | /** |
4595 | * cfg80211_del_sta_sinfo - notify userspace about deletion of a station | ||
4596 | * @dev: the netdev | ||
4597 | * @mac_addr: the station's address | ||
4598 | * @sinfo: the station information/statistics | ||
4599 | * @gfp: allocation flags | ||
4600 | */ | ||
4601 | void cfg80211_del_sta_sinfo(struct net_device *dev, const u8 *mac_addr, | ||
4602 | struct station_info *sinfo, gfp_t gfp); | ||
4603 | |||
4604 | /** | ||
4595 | * cfg80211_del_sta - notify userspace about deletion of a station | 4605 | * cfg80211_del_sta - notify userspace about deletion of a station |
4596 | * | 4606 | * |
4597 | * @dev: the netdev | 4607 | * @dev: the netdev |
4598 | * @mac_addr: the station's address | 4608 | * @mac_addr: the station's address |
4599 | * @gfp: allocation flags | 4609 | * @gfp: allocation flags |
4600 | */ | 4610 | */ |
4601 | void cfg80211_del_sta(struct net_device *dev, const u8 *mac_addr, gfp_t gfp); | 4611 | static inline void cfg80211_del_sta(struct net_device *dev, |
4612 | const u8 *mac_addr, gfp_t gfp) | ||
4613 | { | ||
4614 | cfg80211_del_sta_sinfo(dev, mac_addr, NULL, gfp); | ||
4615 | } | ||
4602 | 4616 | ||
4603 | /** | 4617 | /** |
4604 | * cfg80211_conn_failed - connection request failed notification | 4618 | * cfg80211_conn_failed - connection request failed notification |