Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 1 | /* |
| 2 | * mac80211 debugfs for wireless PHYs |
| 3 | * |
| 4 | * Copyright 2007 Johannes Berg <johannes@sipsolutions.net> |
Johannes Berg | d98ad83 | 2014-09-03 15:24:57 +0300 | [diff] [blame] | 5 | * Copyright 2013-2014 Intel Mobile Communications GmbH |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 6 | * |
| 7 | * GPLv2 |
| 8 | * |
| 9 | */ |
| 10 | |
| 11 | #include <linux/debugfs.h> |
| 12 | #include <linux/rtnetlink.h> |
| 13 | #include "ieee80211_i.h" |
Johannes Berg | 2448798 | 2009-04-23 18:52:52 +0200 | [diff] [blame] | 14 | #include "driver-ops.h" |
Johannes Berg | 2c8dccc | 2008-04-08 15:14:40 -0400 | [diff] [blame] | 15 | #include "rate.h" |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 16 | #include "debugfs.h" |
| 17 | |
Eliad Peller | 07caf9d | 2010-10-27 14:58:29 +0200 | [diff] [blame] | 18 | #define DEBUGFS_FORMAT_BUFFER_SIZE 100 |
| 19 | |
| 20 | int mac80211_format_buffer(char __user *userbuf, size_t count, |
| 21 | loff_t *ppos, char *fmt, ...) |
| 22 | { |
| 23 | va_list args; |
| 24 | char buf[DEBUGFS_FORMAT_BUFFER_SIZE]; |
| 25 | int res; |
| 26 | |
| 27 | va_start(args, fmt); |
| 28 | res = vscnprintf(buf, sizeof(buf), fmt, args); |
| 29 | va_end(args); |
| 30 | |
| 31 | return simple_read_from_buffer(userbuf, count, ppos, buf, res); |
| 32 | } |
| 33 | |
Ben Greear | 279daf6 | 2011-03-23 14:04:31 -0700 | [diff] [blame] | 34 | #define DEBUGFS_READONLY_FILE_FN(name, fmt, value...) \ |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 35 | static ssize_t name## _read(struct file *file, char __user *userbuf, \ |
| 36 | size_t count, loff_t *ppos) \ |
| 37 | { \ |
| 38 | struct ieee80211_local *local = file->private_data; \ |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 39 | \ |
Eliad Peller | 07caf9d | 2010-10-27 14:58:29 +0200 | [diff] [blame] | 40 | return mac80211_format_buffer(userbuf, count, ppos, \ |
| 41 | fmt "\n", ##value); \ |
Ben Greear | 279daf6 | 2011-03-23 14:04:31 -0700 | [diff] [blame] | 42 | } |
| 43 | |
| 44 | #define DEBUGFS_READONLY_FILE_OPS(name) \ |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 45 | static const struct file_operations name## _ops = { \ |
| 46 | .read = name## _read, \ |
Stephen Boyd | 234e340 | 2012-04-05 14:25:11 -0700 | [diff] [blame] | 47 | .open = simple_open, \ |
Arnd Bergmann | 2b18ab36 | 2010-07-06 19:05:31 +0200 | [diff] [blame] | 48 | .llseek = generic_file_llseek, \ |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 49 | }; |
| 50 | |
Ben Greear | 279daf6 | 2011-03-23 14:04:31 -0700 | [diff] [blame] | 51 | #define DEBUGFS_READONLY_FILE(name, fmt, value...) \ |
| 52 | DEBUGFS_READONLY_FILE_FN(name, fmt, value) \ |
| 53 | DEBUGFS_READONLY_FILE_OPS(name) |
| 54 | |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 55 | #define DEBUGFS_ADD(name) \ |
Johannes Berg | 7bcfaf2 | 2009-10-27 12:59:03 +0100 | [diff] [blame] | 56 | debugfs_create_file(#name, 0400, phyd, local, &name## _ops); |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 57 | |
Johannes Berg | 827b1fb | 2009-03-13 11:44:18 +0100 | [diff] [blame] | 58 | #define DEBUGFS_ADD_MODE(name, mode) \ |
Johannes Berg | 7bcfaf2 | 2009-10-27 12:59:03 +0100 | [diff] [blame] | 59 | debugfs_create_file(#name, mode, phyd, local, &name## _ops); |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 60 | |
| 61 | |
Ben Greear | 83bdf2a | 2011-02-15 13:11:22 -0800 | [diff] [blame] | 62 | DEBUGFS_READONLY_FILE(user_power, "%d", |
| 63 | local->user_power_level); |
| 64 | DEBUGFS_READONLY_FILE(power, "%d", |
| 65 | local->hw.conf.power_level); |
Eliad Peller | 07caf9d | 2010-10-27 14:58:29 +0200 | [diff] [blame] | 66 | DEBUGFS_READONLY_FILE(total_ps_buffered, "%d", |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 67 | local->total_ps_buffered); |
Eliad Peller | 07caf9d | 2010-10-27 14:58:29 +0200 | [diff] [blame] | 68 | DEBUGFS_READONLY_FILE(wep_iv, "%#08x", |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 69 | local->wep_iv & 0xffffff); |
Eliad Peller | 07caf9d | 2010-10-27 14:58:29 +0200 | [diff] [blame] | 70 | DEBUGFS_READONLY_FILE(rate_ctrl_alg, "%s", |
Johannes Berg | af65cd96 | 2009-11-17 18:18:36 +0100 | [diff] [blame] | 71 | local->rate_ctrl ? local->rate_ctrl->ops->name : "hw/driver"); |
Alina Friedrichsen | 3b5d665 | 2009-01-24 07:09:59 +0100 | [diff] [blame] | 72 | |
Johannes Berg | 2ad4814 | 2012-09-19 08:20:24 +0200 | [diff] [blame] | 73 | #ifdef CONFIG_PM |
Johannes Berg | 827b1fb | 2009-03-13 11:44:18 +0100 | [diff] [blame] | 74 | static ssize_t reset_write(struct file *file, const char __user *user_buf, |
| 75 | size_t count, loff_t *ppos) |
| 76 | { |
| 77 | struct ieee80211_local *local = file->private_data; |
| 78 | |
| 79 | rtnl_lock(); |
Johannes Berg | eecc480 | 2011-05-04 15:37:29 +0200 | [diff] [blame] | 80 | __ieee80211_suspend(&local->hw, NULL); |
Johannes Berg | 827b1fb | 2009-03-13 11:44:18 +0100 | [diff] [blame] | 81 | __ieee80211_resume(&local->hw); |
| 82 | rtnl_unlock(); |
| 83 | |
| 84 | return count; |
| 85 | } |
| 86 | |
| 87 | static const struct file_operations reset_ops = { |
| 88 | .write = reset_write, |
Stephen Boyd | 234e340 | 2012-04-05 14:25:11 -0700 | [diff] [blame] | 89 | .open = simple_open, |
Arnd Bergmann | 6038f37 | 2010-08-15 18:52:59 +0200 | [diff] [blame] | 90 | .llseek = noop_llseek, |
Johannes Berg | 827b1fb | 2009-03-13 11:44:18 +0100 | [diff] [blame] | 91 | }; |
Johannes Berg | 2ad4814 | 2012-09-19 08:20:24 +0200 | [diff] [blame] | 92 | #endif |
Johannes Berg | 827b1fb | 2009-03-13 11:44:18 +0100 | [diff] [blame] | 93 | |
Johannes Berg | 30686bf | 2015-06-02 21:39:54 +0200 | [diff] [blame] | 94 | static const char *hw_flag_names[NUM_IEEE80211_HW_FLAGS + 1] = { |
| 95 | #define FLAG(F) [IEEE80211_HW_##F] = #F |
| 96 | FLAG(HAS_RATE_CONTROL), |
| 97 | FLAG(RX_INCLUDES_FCS), |
| 98 | FLAG(HOST_BROADCAST_PS_BUFFERING), |
| 99 | FLAG(SIGNAL_UNSPEC), |
| 100 | FLAG(SIGNAL_DBM), |
| 101 | FLAG(NEED_DTIM_BEFORE_ASSOC), |
| 102 | FLAG(SPECTRUM_MGMT), |
| 103 | FLAG(AMPDU_AGGREGATION), |
| 104 | FLAG(SUPPORTS_PS), |
| 105 | FLAG(PS_NULLFUNC_STACK), |
| 106 | FLAG(SUPPORTS_DYNAMIC_PS), |
| 107 | FLAG(MFP_CAPABLE), |
| 108 | FLAG(WANT_MONITOR_VIF), |
| 109 | FLAG(NO_AUTO_VIF), |
| 110 | FLAG(SW_CRYPTO_CONTROL), |
| 111 | FLAG(SUPPORT_FAST_XMIT), |
| 112 | FLAG(REPORTS_TX_ACK_STATUS), |
| 113 | FLAG(CONNECTION_MONITOR), |
| 114 | FLAG(QUEUE_CONTROL), |
| 115 | FLAG(SUPPORTS_PER_STA_GTK), |
| 116 | FLAG(AP_LINK_PS), |
| 117 | FLAG(TX_AMPDU_SETUP_IN_HW), |
| 118 | FLAG(SUPPORTS_RC_TABLE), |
| 119 | FLAG(P2P_DEV_ADDR_FOR_INTF), |
| 120 | FLAG(TIMING_BEACON_ONLY), |
| 121 | FLAG(SUPPORTS_HT_CCK_RATES), |
| 122 | FLAG(CHANCTX_STA_CSA), |
| 123 | FLAG(SUPPORTS_CLONED_SKBS), |
| 124 | FLAG(SINGLE_SCAN_ON_ALL_BANDS), |
Arik Nemtsov | b98fb44 | 2015-06-10 20:42:59 +0300 | [diff] [blame] | 125 | FLAG(TDLS_WIDER_BW), |
Emmanuel Grumbach | 99e7ca4 | 2015-08-15 22:39:51 +0300 | [diff] [blame] | 126 | FLAG(SUPPORTS_AMSDU_IN_AMPDU), |
Helmut Schaa | 35afa58 | 2015-09-09 09:46:32 +0200 | [diff] [blame] | 127 | FLAG(BEACON_TX_STATUS), |
Johannes Berg | 3110489 | 2015-10-22 17:35:19 +0200 | [diff] [blame] | 128 | FLAG(NEEDS_UNIQUE_STA_ADDR), |
Sara Sharon | 412a6d8 | 2015-12-08 19:09:05 +0200 | [diff] [blame] | 129 | FLAG(SUPPORTS_REORDERING_BUFFER), |
Johannes Berg | 30686bf | 2015-06-02 21:39:54 +0200 | [diff] [blame] | 130 | |
| 131 | /* keep last for the build bug below */ |
| 132 | (void *)0x1 |
| 133 | #undef FLAG |
| 134 | }; |
| 135 | |
Ben Greear | 279daf6 | 2011-03-23 14:04:31 -0700 | [diff] [blame] | 136 | static ssize_t hwflags_read(struct file *file, char __user *user_buf, |
| 137 | size_t count, loff_t *ppos) |
| 138 | { |
| 139 | struct ieee80211_local *local = file->private_data; |
Johannes Berg | 30686bf | 2015-06-02 21:39:54 +0200 | [diff] [blame] | 140 | size_t bufsz = 30 * NUM_IEEE80211_HW_FLAGS; |
| 141 | char *buf = kzalloc(bufsz, GFP_KERNEL); |
| 142 | char *pos = buf, *end = buf + bufsz - 1; |
Ben Greear | 279daf6 | 2011-03-23 14:04:31 -0700 | [diff] [blame] | 143 | ssize_t rv; |
Johannes Berg | 30686bf | 2015-06-02 21:39:54 +0200 | [diff] [blame] | 144 | int i; |
Ben Greear | 279daf6 | 2011-03-23 14:04:31 -0700 | [diff] [blame] | 145 | |
Joe Perches | d15b845 | 2011-08-29 14:17:31 -0700 | [diff] [blame] | 146 | if (!buf) |
Johannes Berg | 30686bf | 2015-06-02 21:39:54 +0200 | [diff] [blame] | 147 | return -ENOMEM; |
Joe Perches | d15b845 | 2011-08-29 14:17:31 -0700 | [diff] [blame] | 148 | |
Johannes Berg | 30686bf | 2015-06-02 21:39:54 +0200 | [diff] [blame] | 149 | /* fail compilation if somebody adds or removes |
| 150 | * a flag without updating the name array above |
| 151 | */ |
| 152 | BUILD_BUG_ON(hw_flag_names[NUM_IEEE80211_HW_FLAGS] != (void *)0x1); |
| 153 | |
| 154 | for (i = 0; i < NUM_IEEE80211_HW_FLAGS; i++) { |
| 155 | if (test_bit(i, local->hw.flags)) |
Mohammed Shafi Shajakhan | 4633dfc | 2015-10-08 19:20:14 +0530 | [diff] [blame] | 156 | pos += scnprintf(pos, end - pos, "%s\n", |
Johannes Berg | 30686bf | 2015-06-02 21:39:54 +0200 | [diff] [blame] | 157 | hw_flag_names[i]); |
| 158 | } |
Ben Greear | 279daf6 | 2011-03-23 14:04:31 -0700 | [diff] [blame] | 159 | |
| 160 | rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); |
| 161 | kfree(buf); |
| 162 | return rv; |
| 163 | } |
Benoit Papillault | 199d69f | 2010-02-04 22:00:20 +0100 | [diff] [blame] | 164 | |
Johannes Berg | db2e6bd | 2009-06-14 17:37:39 +0200 | [diff] [blame] | 165 | static ssize_t queues_read(struct file *file, char __user *user_buf, |
| 166 | size_t count, loff_t *ppos) |
| 167 | { |
| 168 | struct ieee80211_local *local = file->private_data; |
| 169 | unsigned long flags; |
| 170 | char buf[IEEE80211_MAX_QUEUES * 20]; |
| 171 | int q, res = 0; |
| 172 | |
| 173 | spin_lock_irqsave(&local->queue_stop_reason_lock, flags); |
| 174 | for (q = 0; q < local->hw.queues; q++) |
| 175 | res += sprintf(buf + res, "%02d: %#.8lx/%d\n", q, |
| 176 | local->queue_stop_reasons[q], |
Johannes Berg | 3b8d81e0 | 2009-06-17 17:43:56 +0200 | [diff] [blame] | 177 | skb_queue_len(&local->pending[q])); |
Johannes Berg | db2e6bd | 2009-06-14 17:37:39 +0200 | [diff] [blame] | 178 | spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags); |
| 179 | |
| 180 | return simple_read_from_buffer(user_buf, count, ppos, buf, res); |
| 181 | } |
| 182 | |
Ben Greear | 279daf6 | 2011-03-23 14:04:31 -0700 | [diff] [blame] | 183 | DEBUGFS_READONLY_FILE_OPS(hwflags); |
Ben Greear | 279daf6 | 2011-03-23 14:04:31 -0700 | [diff] [blame] | 184 | DEBUGFS_READONLY_FILE_OPS(queues); |
Johannes Berg | db2e6bd | 2009-06-14 17:37:39 +0200 | [diff] [blame] | 185 | |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 186 | /* statistics stuff */ |
| 187 | |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 188 | static ssize_t format_devstat_counter(struct ieee80211_local *local, |
| 189 | char __user *userbuf, |
| 190 | size_t count, loff_t *ppos, |
| 191 | int (*printvalue)(struct ieee80211_low_level_stats *stats, char *buf, |
| 192 | int buflen)) |
| 193 | { |
| 194 | struct ieee80211_low_level_stats stats; |
| 195 | char buf[20]; |
| 196 | int res; |
| 197 | |
Johannes Berg | 7563652 | 2008-07-09 14:40:35 +0200 | [diff] [blame] | 198 | rtnl_lock(); |
Johannes Berg | 2448798 | 2009-04-23 18:52:52 +0200 | [diff] [blame] | 199 | res = drv_get_stats(local, &stats); |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 200 | rtnl_unlock(); |
Johannes Berg | 2448798 | 2009-04-23 18:52:52 +0200 | [diff] [blame] | 201 | if (res) |
| 202 | return res; |
| 203 | res = printvalue(&stats, buf, sizeof(buf)); |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 204 | return simple_read_from_buffer(userbuf, count, ppos, buf, res); |
| 205 | } |
| 206 | |
| 207 | #define DEBUGFS_DEVSTATS_FILE(name) \ |
| 208 | static int print_devstats_##name(struct ieee80211_low_level_stats *stats,\ |
| 209 | char *buf, int buflen) \ |
| 210 | { \ |
| 211 | return scnprintf(buf, buflen, "%u\n", stats->name); \ |
| 212 | } \ |
| 213 | static ssize_t stats_ ##name## _read(struct file *file, \ |
| 214 | char __user *userbuf, \ |
| 215 | size_t count, loff_t *ppos) \ |
| 216 | { \ |
| 217 | return format_devstat_counter(file->private_data, \ |
| 218 | userbuf, \ |
| 219 | count, \ |
| 220 | ppos, \ |
| 221 | print_devstats_##name); \ |
| 222 | } \ |
| 223 | \ |
| 224 | static const struct file_operations stats_ ##name## _ops = { \ |
| 225 | .read = stats_ ##name## _read, \ |
Stephen Boyd | 234e340 | 2012-04-05 14:25:11 -0700 | [diff] [blame] | 226 | .open = simple_open, \ |
Arnd Bergmann | 2b18ab36 | 2010-07-06 19:05:31 +0200 | [diff] [blame] | 227 | .llseek = generic_file_llseek, \ |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 228 | }; |
| 229 | |
Johannes Berg | f116043 | 2015-04-22 20:25:20 +0200 | [diff] [blame] | 230 | #define DEBUGFS_STATS_ADD(name) \ |
| 231 | debugfs_create_u32(#name, 0400, statsd, &local->name); |
Felix Fietkau | 2826bcd | 2010-06-02 02:57:34 +0200 | [diff] [blame] | 232 | #define DEBUGFS_DEVSTATS_ADD(name) \ |
Johannes Berg | 7bcfaf2 | 2009-10-27 12:59:03 +0100 | [diff] [blame] | 233 | debugfs_create_file(#name, 0400, statsd, local, &stats_ ##name## _ops); |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 234 | |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 235 | DEBUGFS_DEVSTATS_FILE(dot11ACKFailureCount); |
| 236 | DEBUGFS_DEVSTATS_FILE(dot11RTSFailureCount); |
| 237 | DEBUGFS_DEVSTATS_FILE(dot11FCSErrorCount); |
| 238 | DEBUGFS_DEVSTATS_FILE(dot11RTSSuccessCount); |
| 239 | |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 240 | void debugfs_hw_add(struct ieee80211_local *local) |
| 241 | { |
| 242 | struct dentry *phyd = local->hw.wiphy->debugfsdir; |
| 243 | struct dentry *statsd; |
| 244 | |
| 245 | if (!phyd) |
| 246 | return; |
| 247 | |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 248 | local->debugfs.keys = debugfs_create_dir("keys", phyd); |
| 249 | |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 250 | DEBUGFS_ADD(total_ps_buffered); |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 251 | DEBUGFS_ADD(wep_iv); |
Johannes Berg | db2e6bd | 2009-06-14 17:37:39 +0200 | [diff] [blame] | 252 | DEBUGFS_ADD(queues); |
Johannes Berg | 2ad4814 | 2012-09-19 08:20:24 +0200 | [diff] [blame] | 253 | #ifdef CONFIG_PM |
Johannes Berg | 827b1fb | 2009-03-13 11:44:18 +0100 | [diff] [blame] | 254 | DEBUGFS_ADD_MODE(reset, 0200); |
Johannes Berg | 2ad4814 | 2012-09-19 08:20:24 +0200 | [diff] [blame] | 255 | #endif |
Ben Greear | 279daf6 | 2011-03-23 14:04:31 -0700 | [diff] [blame] | 256 | DEBUGFS_ADD(hwflags); |
Ben Greear | 83bdf2a | 2011-02-15 13:11:22 -0800 | [diff] [blame] | 257 | DEBUGFS_ADD(user_power); |
| 258 | DEBUGFS_ADD(power); |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 259 | |
| 260 | statsd = debugfs_create_dir("statistics", phyd); |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 261 | |
| 262 | /* if the dir failed, don't put all the other things into the root! */ |
| 263 | if (!statsd) |
| 264 | return; |
| 265 | |
Johannes Berg | c206ca6 | 2015-04-22 20:47:28 +0200 | [diff] [blame] | 266 | #ifdef CONFIG_MAC80211_DEBUG_COUNTERS |
Johannes Berg | f116043 | 2015-04-22 20:25:20 +0200 | [diff] [blame] | 267 | DEBUGFS_STATS_ADD(dot11TransmittedFragmentCount); |
| 268 | DEBUGFS_STATS_ADD(dot11MulticastTransmittedFrameCount); |
| 269 | DEBUGFS_STATS_ADD(dot11FailedCount); |
| 270 | DEBUGFS_STATS_ADD(dot11RetryCount); |
| 271 | DEBUGFS_STATS_ADD(dot11MultipleRetryCount); |
| 272 | DEBUGFS_STATS_ADD(dot11FrameDuplicateCount); |
| 273 | DEBUGFS_STATS_ADD(dot11ReceivedFragmentCount); |
| 274 | DEBUGFS_STATS_ADD(dot11MulticastReceivedFrameCount); |
| 275 | DEBUGFS_STATS_ADD(dot11TransmittedFrameCount); |
Johannes Berg | f116043 | 2015-04-22 20:25:20 +0200 | [diff] [blame] | 276 | DEBUGFS_STATS_ADD(tx_handlers_drop); |
| 277 | DEBUGFS_STATS_ADD(tx_handlers_queued); |
| 278 | DEBUGFS_STATS_ADD(tx_handlers_drop_wep); |
| 279 | DEBUGFS_STATS_ADD(tx_handlers_drop_not_assoc); |
| 280 | DEBUGFS_STATS_ADD(tx_handlers_drop_unauth_port); |
| 281 | DEBUGFS_STATS_ADD(rx_handlers_drop); |
| 282 | DEBUGFS_STATS_ADD(rx_handlers_queued); |
| 283 | DEBUGFS_STATS_ADD(rx_handlers_drop_nullfunc); |
| 284 | DEBUGFS_STATS_ADD(rx_handlers_drop_defrag); |
Johannes Berg | f116043 | 2015-04-22 20:25:20 +0200 | [diff] [blame] | 285 | DEBUGFS_STATS_ADD(tx_expand_skb_head); |
| 286 | DEBUGFS_STATS_ADD(tx_expand_skb_head_cloned); |
| 287 | DEBUGFS_STATS_ADD(rx_expand_skb_head_defrag); |
| 288 | DEBUGFS_STATS_ADD(rx_handlers_fragments); |
| 289 | DEBUGFS_STATS_ADD(tx_status_drop); |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 290 | #endif |
Felix Fietkau | 2826bcd | 2010-06-02 02:57:34 +0200 | [diff] [blame] | 291 | DEBUGFS_DEVSTATS_ADD(dot11ACKFailureCount); |
| 292 | DEBUGFS_DEVSTATS_ADD(dot11RTSFailureCount); |
| 293 | DEBUGFS_DEVSTATS_ADD(dot11FCSErrorCount); |
| 294 | DEBUGFS_DEVSTATS_ADD(dot11RTSSuccessCount); |
Jiri Benc | e9f207f | 2007-05-05 11:46:38 -0700 | [diff] [blame] | 295 | } |