Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291439
b: refs/heads/master
c: 4db2c9a
h: refs/heads/master
i:
  291437: e5e4418
  291435: 8315ef3
  291431: 410c015
  291423: 19cd34d
v: v3
  • Loading branch information
David Spinadel authored and John W. Linville committed Mar 12, 2012
1 parent 17933cc commit c261c4a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6dfa8d019cd21d08634ceb65a3fb90d0648bd93b
refs/heads/master: 4db2c9aeb28762ea7416122d03a7e5c8d87eb924
9 changes: 8 additions & 1 deletion trunk/drivers/net/wireless/iwlwifi/iwl-drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,14 +636,17 @@ static int iwl_parse_tlv_firmware(struct iwl_drv *drv,
case IWL_UCODE_TLV_SEC_RT:
iwl_store_ucode_sec(pieces, tlv_data, IWL_UCODE_REGULAR,
tlv_len);
drv->fw.mvm_fw = true;
break;
case IWL_UCODE_TLV_SEC_INIT:
iwl_store_ucode_sec(pieces, tlv_data, IWL_UCODE_INIT,
tlv_len);
drv->fw.mvm_fw = true;
break;
case IWL_UCODE_TLV_SEC_WOWLAN:
iwl_store_ucode_sec(pieces, tlv_data, IWL_UCODE_WOWLAN,
tlv_len);
drv->fw.mvm_fw = true;
break;
case IWL_UCODE_TLV_DEF_CALIB:
if (tlv_len != sizeof(struct iwl_tlv_calib_data))
Expand Down Expand Up @@ -870,7 +873,11 @@ static void iwl_ucode_callback(const struct firmware *ucode_raw, void *context)
goto try_again;
}

if (validate_sec_sizes(drv, &pieces, cfg))
/*
* In mvm uCode there is no difference between data and instructions
* sections.
*/
if (!fw->mvm_fw && validate_sec_sizes(drv, &pieces, cfg))
goto try_again;

/* Allocate ucode buffers for card's bus-master loading ... */
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/wireless/iwlwifi/iwl-fw.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ struct iwl_fw {

u64 default_calib[IWL_UCODE_TYPE_MAX];
u32 phy_config;

bool mvm_fw;
};

#endif /* __iwl_fw_h__ */

0 comments on commit c261c4a

Please sign in to comment.