diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-10-16 17:54:47 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-10-21 10:08:22 +0200 |
commit | e5a9f8d04660da7ef3a98260aa74c3976f9cb4cd (patch) | |
tree | b1497de1b8ffd34b991cdf6e21de1c7a0a65f1de /net/mac80211/ocb.c | |
parent | mac80211: move beacon_loss_count into ifmgd (diff) | |
download | linux-e5a9f8d04660da7ef3a98260aa74c3976f9cb4cd.tar.xz linux-e5a9f8d04660da7ef3a98260aa74c3976f9cb4cd.zip |
mac80211: move station statistics into sub-structs
Group station statistics by where they're (mostly) updated
(TX, RX and TX-status) and group them into sub-structs of
the struct sta_info.
Also rename the variables since the grouping now makes it
obvious where they belong.
This makes it easier to identify where the statistics are
updated in the code, and thus easier to think about them.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/ocb.c')
-rw-r--r-- | net/mac80211/ocb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/ocb.c b/net/mac80211/ocb.c index 573b81a1fb2d..0be0aadfc559 100644 --- a/net/mac80211/ocb.c +++ b/net/mac80211/ocb.c @@ -75,7 +75,7 @@ void ieee80211_ocb_rx_no_sta(struct ieee80211_sub_if_data *sdata, if (!sta) return; - sta->last_rx = jiffies; + sta->rx_stats.last_rx = jiffies; /* Add only mandatory rates for now */ sband = local->hw.wiphy->bands[band]; |