diff options
| author | Johannes Berg <johannes.berg@intel.com> | 2014-11-14 14:32:57 -0500 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2015-01-08 09:28:03 -0500 |
| commit | 6f7a8d26e2668e00de524d3da0122a4411047dd2 (patch) | |
| tree | a15ab39b989b4a274a3ec8233af8b15a7a7da9ea /net | |
| parent | cf5ead822d5db2d276616ccca91f00eb3b855db2 (diff) | |
mac80211: send statistics with delete station event
Use the new cfg80211_del_sta_sinfo() function to send the
statistics about the deleted station with the delete event.
This lets userspace see how much traffic etc. the deleted
station used.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
| -rw-r--r-- | net/mac80211/sta_info.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index db8b07ac6b10..388ff0b2ad2b 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c | |||
| @@ -874,6 +874,7 @@ static void __sta_info_destroy_part2(struct sta_info *sta) | |||
| 874 | { | 874 | { |
| 875 | struct ieee80211_local *local = sta->local; | 875 | struct ieee80211_local *local = sta->local; |
| 876 | struct ieee80211_sub_if_data *sdata = sta->sdata; | 876 | struct ieee80211_sub_if_data *sdata = sta->sdata; |
| 877 | struct station_info sinfo = {}; | ||
| 877 | int ret; | 878 | int ret; |
| 878 | 879 | ||
| 879 | /* | 880 | /* |
| @@ -908,7 +909,8 @@ static void __sta_info_destroy_part2(struct sta_info *sta) | |||
| 908 | 909 | ||
| 909 | sta_dbg(sdata, "Removed STA %pM\n", sta->sta.addr); | 910 | sta_dbg(sdata, "Removed STA %pM\n", sta->sta.addr); |
| 910 | 911 | ||
| 911 | cfg80211_del_sta(sdata->dev, sta->sta.addr, GFP_KERNEL); | 912 | sta_set_sinfo(sta, &sinfo); |
| 913 | cfg80211_del_sta_sinfo(sdata->dev, sta->sta.addr, &sinfo, GFP_KERNEL); | ||
| 912 | 914 | ||
| 913 | rate_control_remove_sta_debugfs(sta); | 915 | rate_control_remove_sta_debugfs(sta); |
| 914 | ieee80211_sta_debugfs_remove(sta); | 916 | ieee80211_sta_debugfs_remove(sta); |
