Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 368466
b: refs/heads/master
c: 1fd4afe
h: refs/heads/master
v: v3
  • Loading branch information
Dor Shaish authored and Johannes Berg committed Mar 6, 2013
1 parent c261ef2 commit ca35f7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 506a81e6ba1148a4435dec95651cd93874c2b7cf
refs/heads/master: 1fd4afe2d13588f935d9f8642a696f84aa1f03d1
9 changes: 6 additions & 3 deletions trunk/drivers/net/wireless/iwlwifi/mvm/nvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ static const int nvm_to_read[] = {
NVM_SECTION_TYPE_PRODUCTION,
};

/* Default NVM size to read */
#define IWL_NVM_DEFAULT_CHUNK_SIZE (2*1024);

/* used to simplify the shared operations on NCM_ACCESS_CMD versions */
union iwl_nvm_access_cmd {
struct iwl_nvm_access_cmd_ver1 ver1;
Expand Down Expand Up @@ -193,9 +196,9 @@ static int iwl_nvm_read_section(struct iwl_mvm *mvm, u16 section,
int ret;
bool old_eeprom = mvm->cfg->device_family != IWL_DEVICE_FAMILY_7000;

length = (iwlwifi_mod_params.amsdu_size_8K ? (8 * 1024) : (4 * 1024))
- sizeof(union iwl_nvm_access_cmd)
- sizeof(struct iwl_rx_packet);
/* Set nvm section read length */
length = IWL_NVM_DEFAULT_CHUNK_SIZE;

/*
* if length is greater than EEPROM size, truncate it because uCode
* doesn't check it by itself, and exit the loop when reached.
Expand Down

0 comments on commit ca35f7d

Please sign in to comment.