aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965.c
diff options
context:
space:
mode:
authorAssaf Krauss <assaf.krauss@intel.com>2008-03-14 13:38:47 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-03-25 16:41:51 -0400
commit00acbc91354f7c548ce12a9ebb7fd25c4c3861ae (patch)
treea1ed43f204a1a3ab4a05187ffa36d8f720d0b190 /drivers/net/wireless/iwlwifi/iwl-4965.c
parent316c30d9dddc1bd5b586a6cf9808018746372cc9 (diff)
iwlwifi: Packing all 4965 parameters
This patch defines a package struct for iwlwifi parameters, and uses a single instance of this struct to group all iwl4965 module parameters together. Signed-off-by: Assaf Krauss <assaf.krauss@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/iwl-4965.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 3d30cba0ad45..2e54dae95751 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -320,7 +320,7 @@ static int iwl4965_rx_init(struct iwl_priv *priv, struct iwl4965_rx_queue *rxq)
320 return rc; 320 return rc;
321 } 321 }
322 322
323 if (iwl4965_param_amsdu_size_8K) 323 if (iwl4965_mod_params.amsdu_size_8K)
324 rb_size = FH_RCSR_RX_CONFIG_REG_VAL_RB_SIZE_8K; 324 rb_size = FH_RCSR_RX_CONFIG_REG_VAL_RB_SIZE_8K;
325 else 325 else
326 rb_size = FH_RCSR_RX_CONFIG_REG_VAL_RB_SIZE_4K; 326 rb_size = FH_RCSR_RX_CONFIG_REG_VAL_RB_SIZE_4K;
@@ -1845,8 +1845,8 @@ int iwl4965_hw_set_hw_setting(struct iwl_priv *priv)
1845{ 1845{
1846 int ret = 0; 1846 int ret = 0;
1847 1847
1848 if ((iwl4965_param_queues_num > IWL_MAX_NUM_QUEUES) || 1848 if ((iwl4965_mod_params.num_of_queues > IWL_MAX_NUM_QUEUES) ||
1849 (iwl4965_param_queues_num < IWL_MIN_NUM_QUEUES)) { 1849 (iwl4965_mod_params.num_of_queues < IWL_MIN_NUM_QUEUES)) {
1850 IWL_ERROR("invalid queues_num, should be between %d and %d\n", 1850 IWL_ERROR("invalid queues_num, should be between %d and %d\n",
1851 IWL_MIN_NUM_QUEUES, IWL_MAX_NUM_QUEUES); 1851 IWL_MIN_NUM_QUEUES, IWL_MAX_NUM_QUEUES);
1852 ret = -EINVAL; 1852 ret = -EINVAL;
@@ -1866,11 +1866,11 @@ int iwl4965_hw_set_hw_setting(struct iwl_priv *priv)
1866 1866
1867 memset(priv->hw_setting.shared_virt, 0, sizeof(struct iwl4965_shared)); 1867 memset(priv->hw_setting.shared_virt, 0, sizeof(struct iwl4965_shared));
1868 1868
1869 priv->hw_setting.max_txq_num = iwl4965_param_queues_num; 1869 priv->hw_setting.max_txq_num = iwl4965_mod_params.num_of_queues;
1870 priv->hw_setting.tx_cmd_len = sizeof(struct iwl4965_tx_cmd); 1870 priv->hw_setting.tx_cmd_len = sizeof(struct iwl4965_tx_cmd);
1871 priv->hw_setting.max_rxq_size = RX_QUEUE_SIZE; 1871 priv->hw_setting.max_rxq_size = RX_QUEUE_SIZE;
1872 priv->hw_setting.max_rxq_log = RX_QUEUE_SIZE_LOG; 1872 priv->hw_setting.max_rxq_log = RX_QUEUE_SIZE_LOG;
1873 if (iwl4965_param_amsdu_size_8K) 1873 if (iwl4965_mod_params.amsdu_size_8K)
1874 priv->hw_setting.rx_buf_size = IWL_RX_BUF_SIZE_8K; 1874 priv->hw_setting.rx_buf_size = IWL_RX_BUF_SIZE_8K;
1875 else 1875 else
1876 priv->hw_setting.rx_buf_size = IWL_RX_BUF_SIZE_4K; 1876 priv->hw_setting.rx_buf_size = IWL_RX_BUF_SIZE_4K;
@@ -3421,7 +3421,7 @@ static void iwl4965_handle_data_packet(struct iwl_priv *priv, int is_data,
3421 stats->flag = 0; 3421 stats->flag = 0;
3422 hdr = (struct ieee80211_hdr *)rxb->skb->data; 3422 hdr = (struct ieee80211_hdr *)rxb->skb->data;
3423 3423
3424 if (iwl4965_param_hwcrypto) 3424 if (iwl4965_mod_params.hw_crypto)
3425 iwl4965_set_decrypted_flag(priv, rxb->skb, ampdu_status, stats); 3425 iwl4965_set_decrypted_flag(priv, rxb->skb, ampdu_status, stats);
3426 3426
3427 if (priv->add_radiotap) 3427 if (priv->add_radiotap)
@@ -3561,7 +3561,7 @@ void iwl4965_init_ht_hw_capab(struct ieee80211_ht_info *ht_info,
3561 ht_info->cap |= (u16)IEEE80211_HT_CAP_SGI_20; 3561 ht_info->cap |= (u16)IEEE80211_HT_CAP_SGI_20;
3562 ht_info->cap |= (u16)(IEEE80211_HT_CAP_MIMO_PS & 3562 ht_info->cap |= (u16)(IEEE80211_HT_CAP_MIMO_PS &
3563 (IWL_MIMO_PS_NONE << 2)); 3563 (IWL_MIMO_PS_NONE << 2));
3564 if (iwl4965_param_amsdu_size_8K) { 3564 if (iwl4965_mod_params.amsdu_size_8K) {
3565 printk(KERN_DEBUG "iwl4965 in A-MSDU 8K support mode\n"); 3565 printk(KERN_DEBUG "iwl4965 in A-MSDU 8K support mode\n");
3566 ht_info->cap |= (u16)IEEE80211_HT_CAP_MAX_AMSDU; 3566 ht_info->cap |= (u16)IEEE80211_HT_CAP_MAX_AMSDU;
3567 } 3567 }