diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debugfs.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index 04a3343f4610..978a1d4c6a0a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * | 2 | * |
3 | * GPL LICENSE SUMMARY | 3 | * GPL LICENSE SUMMARY |
4 | * | 4 | * |
5 | * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. | 5 | * Copyright(c) 2008 - 2012 Intel Corporation. All rights reserved. |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of version 2 of the GNU General Public License as | 8 | * it under the terms of version 2 of the GNU General Public License as |
@@ -2131,9 +2131,10 @@ static ssize_t iwl_dbgfs_ucode_tracing_write(struct file *file, | |||
2131 | 2131 | ||
2132 | if (trace) { | 2132 | if (trace) { |
2133 | priv->event_log.ucode_trace = true; | 2133 | priv->event_log.ucode_trace = true; |
2134 | /* schedule the ucode timer to occur in UCODE_TRACE_PERIOD */ | 2134 | if (iwl_is_alive(priv->shrd)) { |
2135 | mod_timer(&priv->ucode_trace, | 2135 | /* start collecting data now */ |
2136 | jiffies + msecs_to_jiffies(UCODE_TRACE_PERIOD)); | 2136 | mod_timer(&priv->ucode_trace, jiffies); |
2137 | } | ||
2137 | } else { | 2138 | } else { |
2138 | priv->event_log.ucode_trace = false; | 2139 | priv->event_log.ucode_trace = false; |
2139 | del_timer_sync(&priv->ucode_trace); | 2140 | del_timer_sync(&priv->ucode_trace); |