diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-10-16 11:18:11 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-10-21 04:08:21 -0400 |
commit | 976bd9efdae6a844079ba4a7898a38d229ef246c (patch) | |
tree | f077d5f3e587294c4d62a2dc98fe62cc06a03f45 /net/mac80211/ethtool.c | |
parent | 763aa27a292113b6fd9f6ad8bf633edc9b13c98b (diff) |
mac80211: move beacon_loss_count into ifmgd
There's little point in keeping (and even sending to userspace)
the beacon_loss_count value per station, since it can only apply
to the AP on a managed-mode connection. Move the value to ifmgd,
advertise it only in managed mode, and remove it from ethtool as
it's available through better interfaces.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/ethtool.c')
-rw-r--r-- | net/mac80211/ethtool.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/ethtool.c b/net/mac80211/ethtool.c index 188faab11c24..3fbf9c308ec5 100644 --- a/net/mac80211/ethtool.c +++ b/net/mac80211/ethtool.c | |||
@@ -40,7 +40,7 @@ static const char ieee80211_gstrings_sta_stats[][ETH_GSTRING_LEN] = { | |||
40 | "rx_duplicates", "rx_fragments", "rx_dropped", | 40 | "rx_duplicates", "rx_fragments", "rx_dropped", |
41 | "tx_packets", "tx_bytes", | 41 | "tx_packets", "tx_bytes", |
42 | "tx_filtered", "tx_retry_failed", "tx_retries", | 42 | "tx_filtered", "tx_retry_failed", "tx_retries", |
43 | "beacon_loss", "sta_state", "txrate", "rxrate", "signal", | 43 | "sta_state", "txrate", "rxrate", "signal", |
44 | "channel", "noise", "ch_time", "ch_time_busy", | 44 | "channel", "noise", "ch_time", "ch_time_busy", |
45 | "ch_time_ext_busy", "ch_time_rx", "ch_time_tx" | 45 | "ch_time_ext_busy", "ch_time_rx", "ch_time_tx" |
46 | }; | 46 | }; |
@@ -90,7 +90,6 @@ static void ieee80211_get_stats(struct net_device *dev, | |||
90 | data[i++] += sta->tx_filtered_count; \ | 90 | data[i++] += sta->tx_filtered_count; \ |
91 | data[i++] += sta->tx_retry_failed; \ | 91 | data[i++] += sta->tx_retry_failed; \ |
92 | data[i++] += sta->tx_retry_count; \ | 92 | data[i++] += sta->tx_retry_count; \ |
93 | data[i++] += sta->beacon_loss_count; \ | ||
94 | } while (0) | 93 | } while (0) |
95 | 94 | ||
96 | /* For Managed stations, find the single station based on BSSID | 95 | /* For Managed stations, find the single station based on BSSID |