iwlwifi: set size of ucode section
authorDavid Spinadel <david.spinadel@intel.com>
Tue, 13 Mar 2012 12:32:48 +0000 (14:32 +0200)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 16 Apr 2012 21:36:09 +0000 (14:36 -0700)
Set size of firmware section in mvm bundle format.

Signed-off-by: David Spinadel <david.spinadel@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-drv.c

index fa12f73cd5095a210694f54d0e9a0adf345efbc2..da4d85a32d314273ebc5391b4894af44c84ca439 100644 (file)
@@ -284,6 +284,7 @@ static int iwl_store_ucode_sec(struct iwl_firmware_pieces *pieces,
 
        sec->offset = le32_to_cpu(sec_parse->offset);
        sec->data = sec_parse->data;
+       sec->size = size - sizeof(sec_parse->offset);
 
        ++img->sec_counter;