aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-05-15 01:54:05 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-21 21:47:58 -0400
commit83d527d9e8f9aff92cbd33f208f77c055dabb499 (patch)
tree30ccc021fc52fb1a32a6bba9f1691806e723059c /drivers/net
parent4f40e4d9fb8fe028db9ba2a7b4d3ac7328f73bbc (diff)
iwlwifi: remove 4956 form iwl4965_tx_cmd
This patch renames iwl4965_tx_cmd to iwl_tx_cmd and cleans collateral code. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c3
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c1
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-commands.h6
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c4
5 files changed, 7 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index aeaf5f789970..02bbe04309a7 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -1053,7 +1053,6 @@ int iwl4965_hw_set_hw_params(struct iwl_priv *priv)
1053 1053
1054 priv->hw_params.max_txq_num = priv->cfg->mod_params->num_of_queues; 1054 priv->hw_params.max_txq_num = priv->cfg->mod_params->num_of_queues;
1055 priv->hw_params.sw_crypto = priv->cfg->mod_params->sw_crypto; 1055 priv->hw_params.sw_crypto = priv->cfg->mod_params->sw_crypto;
1056 priv->hw_params.tx_cmd_len = sizeof(struct iwl4965_tx_cmd);
1057 priv->hw_params.max_rxq_size = RX_QUEUE_SIZE; 1056 priv->hw_params.max_rxq_size = RX_QUEUE_SIZE;
1058 priv->hw_params.max_rxq_log = RX_QUEUE_SIZE_LOG; 1057 priv->hw_params.max_rxq_log = RX_QUEUE_SIZE_LOG;
1059 if (priv->cfg->mod_params->amsdu_size_8K) 1058 if (priv->cfg->mod_params->amsdu_size_8K)
@@ -1943,7 +1942,7 @@ void iwl4965_hw_build_tx_cmd_rate(struct iwl_priv *priv,
1943 struct ieee80211_hdr *hdr, int sta_id, 1942 struct ieee80211_hdr *hdr, int sta_id,
1944 int is_hcca) 1943 int is_hcca)
1945{ 1944{
1946 struct iwl4965_tx_cmd *tx = &cmd->cmd.tx; 1945 struct iwl_tx_cmd *tx = &cmd->cmd.tx;
1947 u8 rts_retry_limit = 0; 1946 u8 rts_retry_limit = 0;
1948 u8 data_retry_limit = 0; 1947 u8 data_retry_limit = 0;
1949 u16 fc = le16_to_cpu(hdr->frame_control); 1948 u16 fc = le16_to_cpu(hdr->frame_control);
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index 72d655c59fba..d155247d2466 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -298,7 +298,6 @@ static int iwl5000_hw_set_hw_params(struct iwl_priv *priv)
298 298
299 priv->hw_params.max_txq_num = priv->cfg->mod_params->num_of_queues; 299 priv->hw_params.max_txq_num = priv->cfg->mod_params->num_of_queues;
300 priv->hw_params.sw_crypto = priv->cfg->mod_params->sw_crypto; 300 priv->hw_params.sw_crypto = priv->cfg->mod_params->sw_crypto;
301 priv->hw_params.tx_cmd_len = sizeof(struct iwl4965_tx_cmd);
302 priv->hw_params.max_rxq_size = RX_QUEUE_SIZE; 301 priv->hw_params.max_rxq_size = RX_QUEUE_SIZE;
303 priv->hw_params.max_rxq_log = RX_QUEUE_SIZE_LOG; 302 priv->hw_params.max_rxq_log = RX_QUEUE_SIZE_LOG;
304 if (priv->cfg->mod_params->amsdu_size_8K) 303 if (priv->cfg->mod_params->amsdu_size_8K)
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h
index 350af1be6e35..dd84326c97d2 100644
--- a/drivers/net/wireless/iwlwifi/iwl-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-commands.h
@@ -1196,7 +1196,7 @@ struct iwl4965_dram_scratch {
1196/* 1196/*
1197 * REPLY_TX = 0x1c (command) 1197 * REPLY_TX = 0x1c (command)
1198 */ 1198 */
1199struct iwl4965_tx_cmd { 1199struct iwl_tx_cmd {
1200 /* 1200 /*
1201 * MPDU byte count: 1201 * MPDU byte count:
1202 * MAC header (24/26/30/32 bytes) + 2 bytes pad if 26/30 header size, 1202 * MAC header (24/26/30/32 bytes) + 2 bytes pad if 26/30 header size,
@@ -2135,7 +2135,7 @@ struct iwl4965_scan_cmd {
2135 2135
2136 /* For active scans (set to all-0s for passive scans). 2136 /* For active scans (set to all-0s for passive scans).
2137 * Does not include payload. Must specify Tx rate; no rate scaling. */ 2137 * Does not include payload. Must specify Tx rate; no rate scaling. */
2138 struct iwl4965_tx_cmd tx_cmd; 2138 struct iwl_tx_cmd tx_cmd;
2139 2139
2140 /* For directed active scans (set to all-0s otherwise) */ 2140 /* For directed active scans (set to all-0s otherwise) */
2141 struct iwl4965_ssid_ie direct_scan[PROBE_OPTION_MAX]; 2141 struct iwl4965_ssid_ie direct_scan[PROBE_OPTION_MAX];
@@ -2232,7 +2232,7 @@ struct iwl4965_beacon_notif {
2232 * REPLY_TX_BEACON = 0x91 (command, has simple generic response) 2232 * REPLY_TX_BEACON = 0x91 (command, has simple generic response)
2233 */ 2233 */
2234struct iwl4965_tx_beacon_cmd { 2234struct iwl4965_tx_beacon_cmd {
2235 struct iwl4965_tx_cmd tx; 2235 struct iwl_tx_cmd tx;
2236 __le16 tim_idx; 2236 __le16 tim_idx;
2237 u8 tim_size; 2237 u8 tim_size;
2238 u8 reserved1; 2238 u8 reserved1;
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index 565d7dc31a71..ddb950ee25b6 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -329,7 +329,7 @@ struct iwl_cmd {
329 struct iwl4965_rxon_time_cmd rxon_time; 329 struct iwl4965_rxon_time_cmd rxon_time;
330 struct iwl4965_powertable_cmd powertable; 330 struct iwl4965_powertable_cmd powertable;
331 struct iwl4965_qosparam_cmd qosparam; 331 struct iwl4965_qosparam_cmd qosparam;
332 struct iwl4965_tx_cmd tx; 332 struct iwl_tx_cmd tx;
333 struct iwl4965_tx_beacon_cmd tx_beacon; 333 struct iwl4965_tx_beacon_cmd tx_beacon;
334 struct iwl4965_rxon_assoc_cmd rxon_assoc; 334 struct iwl4965_rxon_assoc_cmd rxon_assoc;
335 u8 *indirect; 335 u8 *indirect;
@@ -573,7 +573,6 @@ struct iwl_sensitivity_ranges {
573/** 573/**
574 * struct iwl_hw_params 574 * struct iwl_hw_params
575 * @max_txq_num: Max # Tx queues supported 575 * @max_txq_num: Max # Tx queues supported
576 * @tx_cmd_len: Size of Tx command (but not including frame itself)
577 * @tx/rx_chains_num: Number of TX/RX chains 576 * @tx/rx_chains_num: Number of TX/RX chains
578 * @valid_tx/rx_ant: usable antennas 577 * @valid_tx/rx_ant: usable antennas
579 * @max_rxq_size: Max # Rx frames in Rx queue (must be power-of-2) 578 * @max_rxq_size: Max # Rx frames in Rx queue (must be power-of-2)
@@ -590,7 +589,6 @@ struct iwl_sensitivity_ranges {
590 */ 589 */
591struct iwl_hw_params { 590struct iwl_hw_params {
592 u16 max_txq_num; 591 u16 max_txq_num;
593 u16 tx_cmd_len;
594 u8 tx_chains_num; 592 u8 tx_chains_num;
595 u8 rx_chains_num; 593 u8 rx_chains_num;
596 u8 valid_tx_ant; 594 u8 valid_tx_ant;
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index 88032ccc0ab5..6d5b58f88aaa 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -1740,7 +1740,7 @@ static int iwl4965_tx_skb(struct iwl_priv *priv,
1740 * of the MAC header (device reads on dword boundaries). 1740 * of the MAC header (device reads on dword boundaries).
1741 * We'll tell device about this padding later. 1741 * We'll tell device about this padding later.
1742 */ 1742 */
1743 len = priv->hw_params.tx_cmd_len + 1743 len = sizeof(struct iwl_tx_cmd) +
1744 sizeof(struct iwl_cmd_header) + hdr_len; 1744 sizeof(struct iwl_cmd_header) + hdr_len;
1745 1745
1746 len_org = len; 1746 len_org = len;
@@ -1789,7 +1789,7 @@ static int iwl4965_tx_skb(struct iwl_priv *priv,
1789 iwl_update_tx_stats(priv, fc, len); 1789 iwl_update_tx_stats(priv, fc, len);
1790 1790
1791 scratch_phys = txcmd_phys + sizeof(struct iwl_cmd_header) + 1791 scratch_phys = txcmd_phys + sizeof(struct iwl_cmd_header) +
1792 offsetof(struct iwl4965_tx_cmd, scratch); 1792 offsetof(struct iwl_tx_cmd, scratch);
1793 out_cmd->cmd.tx.dram_lsb_ptr = cpu_to_le32(scratch_phys); 1793 out_cmd->cmd.tx.dram_lsb_ptr = cpu_to_le32(scratch_phys);
1794 out_cmd->cmd.tx.dram_msb_ptr = iwl_get_dma_hi_address(scratch_phys); 1794 out_cmd->cmd.tx.dram_msb_ptr = iwl_get_dma_hi_address(scratch_phys);
1795 1795