mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 22:51:37 +00:00
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>
This commit is contained in:
parent
052536abfa
commit
cf5ead822d
2 changed files with 31 additions and 23 deletions
|
@ -4591,6 +4591,16 @@ void cfg80211_remain_on_channel_expired(struct wireless_dev *wdev, u64 cookie,
|
|||
void cfg80211_new_sta(struct net_device *dev, const u8 *mac_addr,
|
||||
struct station_info *sinfo, gfp_t gfp);
|
||||
|
||||
/**
|
||||
* cfg80211_del_sta_sinfo - notify userspace about deletion of a station
|
||||
* @dev: the netdev
|
||||
* @mac_addr: the station's address
|
||||
* @sinfo: the station information/statistics
|
||||
* @gfp: allocation flags
|
||||
*/
|
||||
void cfg80211_del_sta_sinfo(struct net_device *dev, const u8 *mac_addr,
|
||||
struct station_info *sinfo, gfp_t gfp);
|
||||
|
||||
/**
|
||||
* cfg80211_del_sta - notify userspace about deletion of a station
|
||||
*
|
||||
|
@ -4598,7 +4608,11 @@ void cfg80211_new_sta(struct net_device *dev, const u8 *mac_addr,
|
|||
* @mac_addr: the station's address
|
||||
* @gfp: allocation flags
|
||||
*/
|
||||
void cfg80211_del_sta(struct net_device *dev, const u8 *mac_addr, gfp_t gfp);
|
||||
static inline void cfg80211_del_sta(struct net_device *dev,
|
||||
const u8 *mac_addr, gfp_t gfp)
|
||||
{
|
||||
cfg80211_del_sta_sinfo(dev, mac_addr, NULL, gfp);
|
||||
}
|
||||
|
||||
/**
|
||||
* cfg80211_conn_failed - connection request failed notification
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue