aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-fw-error-dump.h
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2015-02-10 08:26:57 -0500
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2015-03-02 01:20:31 -0500
commit5a756c20c44fe8b41d8adce090a2cdc95f10ab49 (patch)
tree1903a7a89975885ef6808f42f75b9e0d809c3d15 /drivers/net/wireless/iwlwifi/iwl-fw-error-dump.h
parent945d4202d95ed75c4af2968a02e58625d0558896 (diff)
iwlwifi: mvm: add trigger for firmware dump upon statistics
It can be very useful to monitor the statistics and trigger a firmware dump when a certain value hits a certain offset. Since the statistics are huge, add a generic trigger. When the DWORD at offset X reaches value Y. Since there is another trigger before this one I can't add right now because of a dependency on mac80211, add a reserved entry to keep the enum in place. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-fw-error-dump.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-fw-error-dump.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-fw-error-dump.h b/drivers/net/wireless/iwlwifi/iwl-fw-error-dump.h
index 1d5195b4aad2..95bef179ddc1 100644
--- a/drivers/net/wireless/iwlwifi/iwl-fw-error-dump.h
+++ b/drivers/net/wireless/iwlwifi/iwl-fw-error-dump.h
@@ -246,6 +246,8 @@ iwl_fw_error_next_data(struct iwl_fw_error_dump_data *data)
246 * @FW_DBG_TRIGGER_CHANNEL_SWITCH: trigger log collection upon channel switch. 246 * @FW_DBG_TRIGGER_CHANNEL_SWITCH: trigger log collection upon channel switch.
247 * @FW_DBG_TRIGGER_FW_NOTIF: trigger log collection when the firmware sends a 247 * @FW_DBG_TRIGGER_FW_NOTIF: trigger log collection when the firmware sends a
248 * command response or a notification. 248 * command response or a notification.
249 * @FW_DB_TRIGGER_RESERVED: reserved
250 * @FW_DBG_TRIGGER_STATS: trigger log collection upon statistics threshold.
249 */ 251 */
250enum iwl_fw_dbg_trigger { 252enum iwl_fw_dbg_trigger {
251 FW_DBG_TRIGGER_INVALID = 0, 253 FW_DBG_TRIGGER_INVALID = 0,
@@ -254,6 +256,8 @@ enum iwl_fw_dbg_trigger {
254 FW_DBG_TRIGGER_MISSED_BEACONS, 256 FW_DBG_TRIGGER_MISSED_BEACONS,
255 FW_DBG_TRIGGER_CHANNEL_SWITCH, 257 FW_DBG_TRIGGER_CHANNEL_SWITCH,
256 FW_DBG_TRIGGER_FW_NOTIF, 258 FW_DBG_TRIGGER_FW_NOTIF,
259 FW_DB_TRIGGER_RESERVED,
260 FW_DBG_TRIGGER_STATS,
257 261
258 /* must be last */ 262 /* must be last */
259 FW_DBG_TRIGGER_MAX, 263 FW_DBG_TRIGGER_MAX,