diff options
author | Ron Rindjunsky <ron.rindjunsky@intel.com> | 2008-04-21 18:41:53 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-07 15:02:15 -0400 |
commit | 099b40b743df80372236ba1df9796f59ba297b1d (patch) | |
tree | e11a14801bafcf447ff24368e4bf2d370fb167b5 /drivers/net/wireless/iwlwifi/iwl4965-base.c | |
parent | 073d3f5f1b3b6512eb82a3d40c84dedb14dc6f73 (diff) |
iwlwifi: expanding HW parameters control
This patch adds several parameters to priv.hw_params, for better control
over HW capabilities variants
Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl4965-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index c5ac82c4aeb4..b223087b0876 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -828,7 +828,7 @@ static int iwl4965_commit_rxon(struct iwl_priv *priv) | |||
828 | le16_to_cpu(priv->staging_rxon.channel), | 828 | le16_to_cpu(priv->staging_rxon.channel), |
829 | print_mac(mac, priv->staging_rxon.bssid_addr)); | 829 | print_mac(mac, priv->staging_rxon.bssid_addr)); |
830 | 830 | ||
831 | iwl4965_set_rxon_hwcrypto(priv, !priv->cfg->mod_params->sw_crypto); | 831 | iwl4965_set_rxon_hwcrypto(priv, !priv->hw_params.sw_crypto); |
832 | /* Apply the new configuration */ | 832 | /* Apply the new configuration */ |
833 | rc = iwl_send_cmd_pdu(priv, REPLY_RXON, | 833 | rc = iwl_send_cmd_pdu(priv, REPLY_RXON, |
834 | sizeof(struct iwl4965_rxon_cmd), &priv->staging_rxon); | 834 | sizeof(struct iwl4965_rxon_cmd), &priv->staging_rxon); |
@@ -4855,34 +4855,34 @@ static int iwl4965_read_ucode(struct iwl_priv *priv) | |||
4855 | } | 4855 | } |
4856 | 4856 | ||
4857 | /* Verify that uCode images will fit in card's SRAM */ | 4857 | /* Verify that uCode images will fit in card's SRAM */ |
4858 | if (inst_size > IWL_MAX_INST_SIZE) { | 4858 | if (inst_size > priv->hw_params.max_inst_size) { |
4859 | IWL_DEBUG_INFO("uCode instr len %d too large to fit in\n", | 4859 | IWL_DEBUG_INFO("uCode instr len %d too large to fit in\n", |
4860 | inst_size); | 4860 | inst_size); |
4861 | ret = -EINVAL; | 4861 | ret = -EINVAL; |
4862 | goto err_release; | 4862 | goto err_release; |
4863 | } | 4863 | } |
4864 | 4864 | ||
4865 | if (data_size > IWL_MAX_DATA_SIZE) { | 4865 | if (data_size > priv->hw_params.max_data_size) { |
4866 | IWL_DEBUG_INFO("uCode data len %d too large to fit in\n", | 4866 | IWL_DEBUG_INFO("uCode data len %d too large to fit in\n", |
4867 | data_size); | 4867 | data_size); |
4868 | ret = -EINVAL; | 4868 | ret = -EINVAL; |
4869 | goto err_release; | 4869 | goto err_release; |
4870 | } | 4870 | } |
4871 | if (init_size > IWL_MAX_INST_SIZE) { | 4871 | if (init_size > priv->hw_params.max_inst_size) { |
4872 | IWL_DEBUG_INFO | 4872 | IWL_DEBUG_INFO |
4873 | ("uCode init instr len %d too large to fit in\n", | 4873 | ("uCode init instr len %d too large to fit in\n", |
4874 | init_size); | 4874 | init_size); |
4875 | ret = -EINVAL; | 4875 | ret = -EINVAL; |
4876 | goto err_release; | 4876 | goto err_release; |
4877 | } | 4877 | } |
4878 | if (init_data_size > IWL_MAX_DATA_SIZE) { | 4878 | if (init_data_size > priv->hw_params.max_data_size) { |
4879 | IWL_DEBUG_INFO | 4879 | IWL_DEBUG_INFO |
4880 | ("uCode init data len %d too large to fit in\n", | 4880 | ("uCode init data len %d too large to fit in\n", |
4881 | init_data_size); | 4881 | init_data_size); |
4882 | ret = -EINVAL; | 4882 | ret = -EINVAL; |
4883 | goto err_release; | 4883 | goto err_release; |
4884 | } | 4884 | } |
4885 | if (boot_size > IWL_MAX_BSM_SIZE) { | 4885 | if (boot_size > priv->hw_params.max_bsm_size) { |
4886 | IWL_DEBUG_INFO | 4886 | IWL_DEBUG_INFO |
4887 | ("uCode boot instr len %d too large to fit in\n", | 4887 | ("uCode boot instr len %d too large to fit in\n", |
4888 | boot_size); | 4888 | boot_size); |
@@ -6606,7 +6606,7 @@ static int iwl4965_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | |||
6606 | 6606 | ||
6607 | IWL_DEBUG_MAC80211("enter\n"); | 6607 | IWL_DEBUG_MAC80211("enter\n"); |
6608 | 6608 | ||
6609 | if (priv->cfg->mod_params->sw_crypto) { | 6609 | if (priv->hw_params.sw_crypto) { |
6610 | IWL_DEBUG_MAC80211("leave - hwcrypto disabled\n"); | 6610 | IWL_DEBUG_MAC80211("leave - hwcrypto disabled\n"); |
6611 | return -EOPNOTSUPP; | 6611 | return -EOPNOTSUPP; |
6612 | } | 6612 | } |