diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2012-02-07 05:56:26 -0500 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-02-17 13:58:19 -0500 |
commit | dae66d0d2ee1a188fcfd437c4e6b2bf32dc7a1b2 (patch) | |
tree | 5ed45fda6f17832087660bc76120893aef5f65b4 /drivers/net/wireless/iwlwifi/iwl-6000.c | |
parent | 4a986777a53d5fe8fd92ef30e0e8eedd0ff800b1 (diff) |
iwlwifi: SRAM size moves from hw_params to cfg
This will allow to set the hw_params after we fetch the uCode.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-6000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-6000.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c index 19e41037f61e..1e6fbf4fcb46 100644 --- a/drivers/net/wireless/iwlwifi/iwl-6000.c +++ b/drivers/net/wireless/iwlwifi/iwl-6000.c | |||
@@ -145,8 +145,6 @@ static void iwl6000_hw_set_hw_params(struct iwl_priv *priv) | |||
145 | iwlagn_mod_params.num_of_queues; | 145 | iwlagn_mod_params.num_of_queues; |
146 | 146 | ||
147 | hw_params(priv).max_txq_num = cfg(priv)->base_params->num_of_queues; | 147 | hw_params(priv).max_txq_num = cfg(priv)->base_params->num_of_queues; |
148 | hw_params(priv).max_data_size = IWL60_RTC_DATA_SIZE; | ||
149 | hw_params(priv).max_inst_size = IWL60_RTC_INST_SIZE; | ||
150 | 148 | ||
151 | hw_params(priv).ht40_channel = BIT(IEEE80211_BAND_2GHZ) | | 149 | hw_params(priv).ht40_channel = BIT(IEEE80211_BAND_2GHZ) | |
152 | BIT(IEEE80211_BAND_5GHZ); | 150 | BIT(IEEE80211_BAND_5GHZ); |
@@ -348,6 +346,8 @@ static struct iwl_bt_params iwl6000_bt_params = { | |||
348 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, \ | 346 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, \ |
349 | .ucode_api_ok = IWL6000G2_UCODE_API_OK, \ | 347 | .ucode_api_ok = IWL6000G2_UCODE_API_OK, \ |
350 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, \ | 348 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, \ |
349 | .max_inst_size = IWL60_RTC_INST_SIZE, \ | ||
350 | .max_data_size = IWL60_RTC_DATA_SIZE, \ | ||
351 | .eeprom_ver = EEPROM_6005_EEPROM_VERSION, \ | 351 | .eeprom_ver = EEPROM_6005_EEPROM_VERSION, \ |
352 | .eeprom_calib_ver = EEPROM_6005_TX_POWER_VERSION, \ | 352 | .eeprom_calib_ver = EEPROM_6005_TX_POWER_VERSION, \ |
353 | .lib = &iwl6000_lib, \ | 353 | .lib = &iwl6000_lib, \ |
@@ -388,6 +388,8 @@ struct iwl_cfg iwl6005_2agn_d_cfg = { | |||
388 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, \ | 388 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, \ |
389 | .ucode_api_ok = IWL6000G2_UCODE_API_OK, \ | 389 | .ucode_api_ok = IWL6000G2_UCODE_API_OK, \ |
390 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, \ | 390 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, \ |
391 | .max_inst_size = IWL60_RTC_INST_SIZE, \ | ||
392 | .max_data_size = IWL60_RTC_DATA_SIZE, \ | ||
391 | .eeprom_ver = EEPROM_6030_EEPROM_VERSION, \ | 393 | .eeprom_ver = EEPROM_6030_EEPROM_VERSION, \ |
392 | .eeprom_calib_ver = EEPROM_6030_TX_POWER_VERSION, \ | 394 | .eeprom_calib_ver = EEPROM_6030_TX_POWER_VERSION, \ |
393 | .lib = &iwl6030_lib, \ | 395 | .lib = &iwl6030_lib, \ |
@@ -457,6 +459,8 @@ struct iwl_cfg iwl130_bg_cfg = { | |||
457 | .ucode_api_max = IWL6000_UCODE_API_MAX, \ | 459 | .ucode_api_max = IWL6000_UCODE_API_MAX, \ |
458 | .ucode_api_ok = IWL6000_UCODE_API_OK, \ | 460 | .ucode_api_ok = IWL6000_UCODE_API_OK, \ |
459 | .ucode_api_min = IWL6000_UCODE_API_MIN, \ | 461 | .ucode_api_min = IWL6000_UCODE_API_MIN, \ |
462 | .max_inst_size = IWL60_RTC_INST_SIZE, \ | ||
463 | .max_data_size = IWL60_RTC_DATA_SIZE, \ | ||
460 | .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \ | 464 | .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \ |
461 | .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \ | 465 | .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \ |
462 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, \ | 466 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, \ |
@@ -486,6 +490,8 @@ struct iwl_cfg iwl6000i_2bg_cfg = { | |||
486 | .fw_name_pre = IWL6050_FW_PRE, \ | 490 | .fw_name_pre = IWL6050_FW_PRE, \ |
487 | .ucode_api_max = IWL6050_UCODE_API_MAX, \ | 491 | .ucode_api_max = IWL6050_UCODE_API_MAX, \ |
488 | .ucode_api_min = IWL6050_UCODE_API_MIN, \ | 492 | .ucode_api_min = IWL6050_UCODE_API_MIN, \ |
493 | .max_inst_size = IWL60_RTC_INST_SIZE, \ | ||
494 | .max_data_size = IWL60_RTC_DATA_SIZE, \ | ||
489 | .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \ | 495 | .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \ |
490 | .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \ | 496 | .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \ |
491 | .lib = &iwl6000_lib, \ | 497 | .lib = &iwl6000_lib, \ |
@@ -511,6 +517,8 @@ struct iwl_cfg iwl6050_2abg_cfg = { | |||
511 | .fw_name_pre = IWL6050_FW_PRE, \ | 517 | .fw_name_pre = IWL6050_FW_PRE, \ |
512 | .ucode_api_max = IWL6050_UCODE_API_MAX, \ | 518 | .ucode_api_max = IWL6050_UCODE_API_MAX, \ |
513 | .ucode_api_min = IWL6050_UCODE_API_MIN, \ | 519 | .ucode_api_min = IWL6050_UCODE_API_MIN, \ |
520 | .max_inst_size = IWL60_RTC_INST_SIZE, \ | ||
521 | .max_data_size = IWL60_RTC_DATA_SIZE, \ | ||
514 | .lib = &iwl6000_lib, \ | 522 | .lib = &iwl6000_lib, \ |
515 | .additional_nic_config = iwl6150_additional_nic_config, \ | 523 | .additional_nic_config = iwl6150_additional_nic_config, \ |
516 | .eeprom_ver = EEPROM_6150_EEPROM_VERSION, \ | 524 | .eeprom_ver = EEPROM_6150_EEPROM_VERSION, \ |
@@ -536,6 +544,8 @@ struct iwl_cfg iwl6000_3agn_cfg = { | |||
536 | .ucode_api_max = IWL6000_UCODE_API_MAX, | 544 | .ucode_api_max = IWL6000_UCODE_API_MAX, |
537 | .ucode_api_ok = IWL6000_UCODE_API_OK, | 545 | .ucode_api_ok = IWL6000_UCODE_API_OK, |
538 | .ucode_api_min = IWL6000_UCODE_API_MIN, | 546 | .ucode_api_min = IWL6000_UCODE_API_MIN, |
547 | .max_inst_size = IWL60_RTC_INST_SIZE, | ||
548 | .max_data_size = IWL60_RTC_DATA_SIZE, | ||
539 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, | 549 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
540 | .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, | 550 | .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, |
541 | .lib = &iwl6000_lib, | 551 | .lib = &iwl6000_lib, |