summaryrefslogtreecommitdiffstats
path: root/net/mac80211/debugfs.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2015-04-22 14:47:28 -0400
committerJohannes Berg <johannes.berg@intel.com>2015-05-05 08:21:54 -0400
commitc206ca670974cefec7ac3732db5c8156e8081a8d (patch)
treecb6ad01eea07abdd42ec4ba7433ba876c9cd1f57 /net/mac80211/debugfs.c
parentf1160434c7658af3f7b0926b88df49a66cb3c3e0 (diff)
mac80211: move dot11 counters under MAC80211_DEBUG_COUNTERS
Since these counters can only be read through debugfs, there's very little point in maintaining them all the time. However, even just making them depend on debugfs is pointless - they're not normally used. Additionally a number of them aren't even concurrency safe. Move them under MAC80211_DEBUG_COUNTERS so they're normally not even compiled in. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/debugfs.c')
-rw-r--r--net/mac80211/debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c
index 854bf42c4804..b17206db49b4 100644
--- a/net/mac80211/debugfs.c
+++ b/net/mac80211/debugfs.c
@@ -255,6 +255,7 @@ void debugfs_hw_add(struct ieee80211_local *local)
255 if (!statsd) 255 if (!statsd)
256 return; 256 return;
257 257
258#ifdef CONFIG_MAC80211_DEBUG_COUNTERS
258 DEBUGFS_STATS_ADD(dot11TransmittedFragmentCount); 259 DEBUGFS_STATS_ADD(dot11TransmittedFragmentCount);
259 DEBUGFS_STATS_ADD(dot11MulticastTransmittedFrameCount); 260 DEBUGFS_STATS_ADD(dot11MulticastTransmittedFrameCount);
260 DEBUGFS_STATS_ADD(dot11FailedCount); 261 DEBUGFS_STATS_ADD(dot11FailedCount);
@@ -264,7 +265,6 @@ void debugfs_hw_add(struct ieee80211_local *local)
264 DEBUGFS_STATS_ADD(dot11ReceivedFragmentCount); 265 DEBUGFS_STATS_ADD(dot11ReceivedFragmentCount);
265 DEBUGFS_STATS_ADD(dot11MulticastReceivedFrameCount); 266 DEBUGFS_STATS_ADD(dot11MulticastReceivedFrameCount);
266 DEBUGFS_STATS_ADD(dot11TransmittedFrameCount); 267 DEBUGFS_STATS_ADD(dot11TransmittedFrameCount);
267#ifdef CONFIG_MAC80211_DEBUG_COUNTERS
268 DEBUGFS_STATS_ADD(tx_handlers_drop); 268 DEBUGFS_STATS_ADD(tx_handlers_drop);
269 DEBUGFS_STATS_ADD(tx_handlers_queued); 269 DEBUGFS_STATS_ADD(tx_handlers_queued);
270 DEBUGFS_STATS_ADD(tx_handlers_drop_wep); 270 DEBUGFS_STATS_ADD(tx_handlers_drop_wep);