提交 1fd4afe2 编写于 作者: D Dor Shaish 提交者: Johannes Berg

iwlwifi: mvm: Change NVM default section read size

Signed-off-by: NDor Shaish <dor.shaish@intel.com>
Reviewed-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 506a81e6
...@@ -74,6 +74,9 @@ static const int nvm_to_read[] = { ...@@ -74,6 +74,9 @@ static const int nvm_to_read[] = {
NVM_SECTION_TYPE_PRODUCTION, 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 */ /* used to simplify the shared operations on NCM_ACCESS_CMD versions */
union iwl_nvm_access_cmd { union iwl_nvm_access_cmd {
struct iwl_nvm_access_cmd_ver1 ver1; struct iwl_nvm_access_cmd_ver1 ver1;
...@@ -193,9 +196,9 @@ static int iwl_nvm_read_section(struct iwl_mvm *mvm, u16 section, ...@@ -193,9 +196,9 @@ static int iwl_nvm_read_section(struct iwl_mvm *mvm, u16 section,
int ret; int ret;
bool old_eeprom = mvm->cfg->device_family != IWL_DEVICE_FAMILY_7000; bool old_eeprom = mvm->cfg->device_family != IWL_DEVICE_FAMILY_7000;
length = (iwlwifi_mod_params.amsdu_size_8K ? (8 * 1024) : (4 * 1024)) /* Set nvm section read length */
- sizeof(union iwl_nvm_access_cmd) length = IWL_NVM_DEFAULT_CHUNK_SIZE;
- sizeof(struct iwl_rx_packet);
/* /*
* if length is greater than EEPROM size, truncate it because uCode * if length is greater than EEPROM size, truncate it because uCode
* doesn't check it by itself, and exit the loop when reached. * doesn't check it by itself, and exit the loop when reached.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册