aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-01-14 20:46:14 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:09:54 -0500
commit440d42c30cb86eb1b6dbc0d84b9b52e2476fa5e3 (patch)
tree8678be6bc05630e924f6f8394fc43c57338b6887 /drivers
parentd15913140645d9c23e8b0a9a0bb307ca889688d3 (diff)
iwl4965: Remove redundant code in iwl4965_tx_cmd
This function removes redundant code in iwl4965_tx_cmd function, leftovers of previous design. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index ed3f119b56cd..b913c6b921bc 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -3267,8 +3267,7 @@ int iwl4965_tx_cmd(struct iwl4965_priv *priv, struct iwl4965_cmd *out_cmd,
3267 struct ieee80211_hdr *hdr, u8 hdr_len, 3267 struct ieee80211_hdr *hdr, u8 hdr_len,
3268 struct ieee80211_tx_control *ctrl, void *sta_in) 3268 struct ieee80211_tx_control *ctrl, void *sta_in)
3269{ 3269{
3270 struct iwl4965_tx_cmd cmd; 3270 struct iwl4965_tx_cmd *tx = &out_cmd->cmd.tx;
3271 struct iwl4965_tx_cmd *tx = (struct iwl4965_tx_cmd *)&out_cmd->cmd.payload[0];
3272 dma_addr_t scratch_phys; 3271 dma_addr_t scratch_phys;
3273 u8 unicast = 0; 3272 u8 unicast = 0;
3274 u8 is_data = 1; 3273 u8 is_data = 1;
@@ -3287,26 +3286,6 @@ int iwl4965_tx_cmd(struct iwl4965_priv *priv, struct iwl4965_cmd *out_cmd,
3287 if ((fc & IEEE80211_FCTL_FTYPE) != IEEE80211_FTYPE_DATA) 3286 if ((fc & IEEE80211_FCTL_FTYPE) != IEEE80211_FTYPE_DATA)
3288 is_data = 0; 3287 is_data = 0;
3289 3288
3290 memcpy(&cmd, &(out_cmd->cmd.tx), sizeof(struct iwl4965_tx_cmd));
3291 memset(tx, 0, sizeof(struct iwl4965_tx_cmd));
3292 memcpy(tx->hdr, hdr, hdr_len);
3293
3294 tx->len = cmd.len;
3295 tx->driver_txop = cmd.driver_txop;
3296 tx->stop_time.life_time = cmd.stop_time.life_time;
3297 tx->tx_flags = cmd.tx_flags;
3298 tx->sta_id = cmd.sta_id;
3299 tx->tid_tspec = cmd.tid_tspec;
3300 tx->timeout.pm_frame_timeout = cmd.timeout.pm_frame_timeout;
3301 tx->next_frame_len = cmd.next_frame_len;
3302
3303 tx->sec_ctl = cmd.sec_ctl;
3304 memcpy(&(tx->key[0]), &(cmd.key[0]), 16);
3305 tx->tx_flags = cmd.tx_flags;
3306
3307 tx->rts_retry_limit = cmd.rts_retry_limit;
3308 tx->data_retry_limit = cmd.data_retry_limit;
3309
3310 scratch_phys = txcmd_phys + sizeof(struct iwl4965_cmd_header) + 3289 scratch_phys = txcmd_phys + sizeof(struct iwl4965_cmd_header) +
3311 offsetof(struct iwl4965_tx_cmd, scratch); 3290 offsetof(struct iwl4965_tx_cmd, scratch);
3312 tx->dram_lsb_ptr = cpu_to_le32(scratch_phys); 3291 tx->dram_lsb_ptr = cpu_to_le32(scratch_phys);