aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl3945-base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 12ff1121e6dc..03ff87fbe924 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -5302,7 +5302,7 @@ static int iwl3945_read_ucode(struct iwl3945_priv *priv)
5302 const char *name = priv->cfg->fw_name; 5302 const char *name = priv->cfg->fw_name;
5303 u8 *src; 5303 u8 *src;
5304 size_t len; 5304 size_t len;
5305 u32 ver, inst_size, data_size, init_size, init_data_size, boot_size; 5305 u32 inst_size, data_size, init_size, init_data_size, boot_size;
5306 5306
5307 /* Ask kernel firmware_class module to get the boot firmware off disk. 5307 /* Ask kernel firmware_class module to get the boot firmware off disk.
5308 * request_firmware() is synchronous, file is in memory on return. */ 5308 * request_firmware() is synchronous, file is in memory on return. */
@@ -5326,14 +5326,20 @@ static int iwl3945_read_ucode(struct iwl3945_priv *priv)
5326 /* Data from ucode file: header followed by uCode images */ 5326 /* Data from ucode file: header followed by uCode images */
5327 ucode = (void *)ucode_raw->data; 5327 ucode = (void *)ucode_raw->data;
5328 5328
5329 ver = le32_to_cpu(ucode->ver); 5329 priv->ucode_ver = le32_to_cpu(ucode->ver);
5330 inst_size = le32_to_cpu(ucode->inst_size); 5330 inst_size = le32_to_cpu(ucode->inst_size);
5331 data_size = le32_to_cpu(ucode->data_size); 5331 data_size = le32_to_cpu(ucode->data_size);
5332 init_size = le32_to_cpu(ucode->init_size); 5332 init_size = le32_to_cpu(ucode->init_size);
5333 init_data_size = le32_to_cpu(ucode->init_data_size); 5333 init_data_size = le32_to_cpu(ucode->init_data_size);
5334 boot_size = le32_to_cpu(ucode->boot_size); 5334 boot_size = le32_to_cpu(ucode->boot_size);
5335 5335
5336 IWL_DEBUG_INFO("f/w package hdr ucode version = 0x%x\n", ver); 5336 IWL_DEBUG_INFO("f/w package hdr ucode version raw = 0x%x\n",
5337 priv->ucode_ver);
5338 IWL_DEBUG_INFO("f/w package hdr ucode version = %u.%u.%u.%u\n",
5339 IWL_UCODE_MAJOR(priv->ucode_ver),
5340 IWL_UCODE_MINOR(priv->ucode_ver),
5341 IWL_UCODE_API(priv->ucode_ver),
5342 IWL_UCODE_SERIAL(priv->ucode_ver));
5337 IWL_DEBUG_INFO("f/w package hdr runtime inst size = %u\n", inst_size); 5343 IWL_DEBUG_INFO("f/w package hdr runtime inst size = %u\n", inst_size);
5338 IWL_DEBUG_INFO("f/w package hdr runtime data size = %u\n", data_size); 5344 IWL_DEBUG_INFO("f/w package hdr runtime data size = %u\n", data_size);
5339 IWL_DEBUG_INFO("f/w package hdr init inst size = %u\n", init_size); 5345 IWL_DEBUG_INFO("f/w package hdr init inst size = %u\n", init_size);