diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2009-06-19 16:52:42 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:01:56 -0400 |
commit | 90e8e424d9c071f2db22100de81af6c8f7df34ee (patch) | |
tree | e56d3c3e73b8d2e84b900c764bfeb7fb8fa314ca /drivers | |
parent | 3354a0f6a3ced6957dfb9f689ad075cfa8fd272f (diff) |
iwlwifi: drop sw_crypto from hw_params.
Each HW supported by iwlwifi is capable of hardware crypto
so drop this flag from hw_params structure.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-rx.c | 2 |
5 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 777c09534cec..8cfc83055aa0 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -1987,7 +1987,7 @@ static int iwl3945_commit_rxon(struct iwl_priv *priv) | |||
1987 | staging_rxon->reserved4 = 0; | 1987 | staging_rxon->reserved4 = 0; |
1988 | staging_rxon->reserved5 = 0; | 1988 | staging_rxon->reserved5 = 0; |
1989 | 1989 | ||
1990 | iwl_set_rxon_hwcrypto(priv, !priv->hw_params.sw_crypto); | 1990 | iwl_set_rxon_hwcrypto(priv, !iwl3945_mod_params.sw_crypto); |
1991 | 1991 | ||
1992 | /* Apply the new configuration */ | 1992 | /* Apply the new configuration */ |
1993 | rc = iwl_send_cmd_pdu(priv, REPLY_RXON, | 1993 | rc = iwl_send_cmd_pdu(priv, REPLY_RXON, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 63cba8c0ad4d..d9285615c679 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -171,7 +171,7 @@ int iwl_commit_rxon(struct iwl_priv *priv) | |||
171 | le16_to_cpu(priv->staging_rxon.channel), | 171 | le16_to_cpu(priv->staging_rxon.channel), |
172 | priv->staging_rxon.bssid_addr); | 172 | priv->staging_rxon.bssid_addr); |
173 | 173 | ||
174 | iwl_set_rxon_hwcrypto(priv, !priv->hw_params.sw_crypto); | 174 | iwl_set_rxon_hwcrypto(priv, !priv->cfg->mod_params->sw_crypto); |
175 | 175 | ||
176 | /* Apply the new configuration | 176 | /* Apply the new configuration |
177 | * RXON unassoc clears the station table in uCode, send it before | 177 | * RXON unassoc clears the station table in uCode, send it before |
@@ -2337,7 +2337,7 @@ static int iwl_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | |||
2337 | 2337 | ||
2338 | IWL_DEBUG_MAC80211(priv, "enter\n"); | 2338 | IWL_DEBUG_MAC80211(priv, "enter\n"); |
2339 | 2339 | ||
2340 | if (priv->hw_params.sw_crypto) { | 2340 | if (priv->cfg->mod_params->sw_crypto) { |
2341 | IWL_DEBUG_MAC80211(priv, "leave - hwcrypto disabled\n"); | 2341 | IWL_DEBUG_MAC80211(priv, "leave - hwcrypto disabled\n"); |
2342 | return -EOPNOTSUPP; | 2342 | return -EOPNOTSUPP; |
2343 | } | 2343 | } |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 6ab07165ea28..11a19692f33b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -1361,7 +1361,6 @@ EXPORT_SYMBOL(iwl_setup_mac); | |||
1361 | 1361 | ||
1362 | int iwl_set_hw_params(struct iwl_priv *priv) | 1362 | int iwl_set_hw_params(struct iwl_priv *priv) |
1363 | { | 1363 | { |
1364 | priv->hw_params.sw_crypto = priv->cfg->mod_params->sw_crypto; | ||
1365 | priv->hw_params.max_rxq_size = RX_QUEUE_SIZE; | 1364 | priv->hw_params.max_rxq_size = RX_QUEUE_SIZE; |
1366 | priv->hw_params.max_rxq_log = RX_QUEUE_SIZE_LOG; | 1365 | priv->hw_params.max_rxq_log = RX_QUEUE_SIZE_LOG; |
1367 | if (priv->cfg->mod_params->amsdu_size_8K) | 1366 | if (priv->cfg->mod_params->amsdu_size_8K) |
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index e2d620f0b6e8..5da60e402f7b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -608,7 +608,6 @@ struct iwl_hw_params { | |||
608 | u8 max_stations; | 608 | u8 max_stations; |
609 | u8 bcast_sta_id; | 609 | u8 bcast_sta_id; |
610 | u8 fat_channel; | 610 | u8 fat_channel; |
611 | u8 sw_crypto; | ||
612 | u32 max_inst_size; | 611 | u32 max_inst_size; |
613 | u32 max_data_size; | 612 | u32 max_data_size; |
614 | u32 max_bsm_size; | 613 | u32 max_bsm_size; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-rx.c b/drivers/net/wireless/iwlwifi/iwl-rx.c index 2160795ed015..66fe365dd08a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-rx.c | |||
@@ -927,7 +927,7 @@ static void iwl_pass_packet_to_mac80211(struct iwl_priv *priv, | |||
927 | hdr = (struct ieee80211_hdr *)rxb->skb->data; | 927 | hdr = (struct ieee80211_hdr *)rxb->skb->data; |
928 | 928 | ||
929 | /* in case of HW accelerated crypto and bad decryption, drop */ | 929 | /* in case of HW accelerated crypto and bad decryption, drop */ |
930 | if (!priv->hw_params.sw_crypto && | 930 | if (!priv->cfg->mod_params->sw_crypto && |
931 | iwl_set_decrypted_flag(priv, hdr, ampdu_status, stats)) | 931 | iwl_set_decrypted_flag(priv, hdr, ampdu_status, stats)) |
932 | return; | 932 | return; |
933 | 933 | ||