diff options
author | Ron Rindjunsky <ron.rindjunsky@intel.com> | 2008-05-29 04:35:06 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-03 15:00:23 -0400 |
commit | fe9b6b720bd11c598417529755ac850a85070560 (patch) | |
tree | 4b87cb64ce53800c7182929088ef92b9c689f78c /drivers/net/wireless/iwlwifi/iwl-4965.c | |
parent | 7c616cba240cd0d579c996be3f3603456acfb0ad (diff) |
iwlwifi: activate status ready timeout only for run time ucode
This patch makes driver state timeout checks on ucode alive response
only if run time ucode have been loaded.
Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 1b3e82ff90cb..3bb6ac588aaf 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -156,6 +156,8 @@ static int iwl4965_load_bsm(struct iwl_priv *priv) | |||
156 | 156 | ||
157 | IWL_DEBUG_INFO("Begin load bsm\n"); | 157 | IWL_DEBUG_INFO("Begin load bsm\n"); |
158 | 158 | ||
159 | priv->ucode_type = UCODE_RT; | ||
160 | |||
159 | /* make sure bootstrap program is no larger than BSM's SRAM size */ | 161 | /* make sure bootstrap program is no larger than BSM's SRAM size */ |
160 | if (len > IWL_MAX_BSM_SIZE) | 162 | if (len > IWL_MAX_BSM_SIZE) |
161 | return -EINVAL; | 163 | return -EINVAL; |
@@ -221,8 +223,6 @@ static int iwl4965_load_bsm(struct iwl_priv *priv) | |||
221 | 223 | ||
222 | iwl_release_nic_access(priv); | 224 | iwl_release_nic_access(priv); |
223 | 225 | ||
224 | priv->ucode_type = UCODE_INIT; | ||
225 | |||
226 | return 0; | 226 | return 0; |
227 | } | 227 | } |
228 | 228 | ||
@@ -269,8 +269,6 @@ static int iwl4965_set_ucode_ptrs(struct iwl_priv *priv) | |||
269 | 269 | ||
270 | IWL_DEBUG_INFO("Runtime uCode pointers are set.\n"); | 270 | IWL_DEBUG_INFO("Runtime uCode pointers are set.\n"); |
271 | 271 | ||
272 | priv->ucode_type = UCODE_RT; | ||
273 | |||
274 | return ret; | 272 | return ret; |
275 | } | 273 | } |
276 | 274 | ||