diff options
author | Samuel Ortiz <samuel.ortiz@intel.com> | 2009-01-19 18:30:27 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:00:57 -0500 |
commit | 518099a870ef3f5f97d96aa0c284ce1b403436fa (patch) | |
tree | a12898350f0f9bdfd33f0d05885265f469c95eb7 /drivers/net/wireless/iwlwifi/iwl-tx.c | |
parent | 7aaa1d79e3a2d573ac469744506f17b1c9386840 (diff) |
iwl3945: Use iwl-hcmd host command routines
With the previously added tfd related ops, we can now use the iwl-tx.c host
command enqueue routine. Since the 3945 host command specific
routines are identical to the agn ones, we can just remove them from the 3945
code.
Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-tx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-tx.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index 487a1d652292..1a2cfbebb17b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c | |||
@@ -1004,7 +1004,8 @@ int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | |||
1004 | phys_addr += offsetof(struct iwl_cmd, hdr); | 1004 | phys_addr += offsetof(struct iwl_cmd, hdr); |
1005 | 1005 | ||
1006 | priv->cfg->ops->lib->txq_attach_buf_to_tfd(priv, txq, | 1006 | priv->cfg->ops->lib->txq_attach_buf_to_tfd(priv, txq, |
1007 | phys_addr, fix_size, 1, 0); | 1007 | phys_addr, fix_size, 1, |
1008 | U32_PAD(cmd->len)); | ||
1008 | 1009 | ||
1009 | #ifdef CONFIG_IWLWIFI_DEBUG | 1010 | #ifdef CONFIG_IWLWIFI_DEBUG |
1010 | switch (out_cmd->hdr.cmd) { | 1011 | switch (out_cmd->hdr.cmd) { |
@@ -1028,8 +1029,9 @@ int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | |||
1028 | #endif | 1029 | #endif |
1029 | txq->need_update = 1; | 1030 | txq->need_update = 1; |
1030 | 1031 | ||
1031 | /* Set up entry in queue's byte count circular buffer */ | 1032 | if (priv->cfg->ops->lib->txq_update_byte_cnt_tbl) |
1032 | priv->cfg->ops->lib->txq_update_byte_cnt_tbl(priv, txq, 0); | 1033 | /* Set up entry in queue's byte count circular buffer */ |
1034 | priv->cfg->ops->lib->txq_update_byte_cnt_tbl(priv, txq, 0); | ||
1033 | 1035 | ||
1034 | /* Increment and update queue's write index */ | 1036 | /* Increment and update queue's write index */ |
1035 | q->write_ptr = iwl_queue_inc_wrap(q->write_ptr, q->n_bd); | 1037 | q->write_ptr = iwl_queue_inc_wrap(q->write_ptr, q->n_bd); |