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-3945.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-3945.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 18e0f0e3a74f..1f3305b36d05 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -1766,8 +1766,9 @@ int iwl3945_hw_reg_send_txpower(struct iwl_priv *priv) | |||
1766 | txpower.power[i].rate); | 1766 | txpower.power[i].rate); |
1767 | } | 1767 | } |
1768 | 1768 | ||
1769 | return iwl3945_send_cmd_pdu(priv, REPLY_TX_PWR_TABLE_CMD, | 1769 | return iwl_send_cmd_pdu(priv, REPLY_TX_PWR_TABLE_CMD, |
1770 | sizeof(struct iwl3945_txpowertable_cmd), &txpower); | 1770 | sizeof(struct iwl3945_txpowertable_cmd), |
1771 | &txpower); | ||
1771 | 1772 | ||
1772 | } | 1773 | } |
1773 | 1774 | ||
@@ -2463,14 +2464,14 @@ int iwl3945_init_hw_rate_table(struct iwl_priv *priv) | |||
2463 | 2464 | ||
2464 | /* Update the rate scaling for control frame Tx */ | 2465 | /* Update the rate scaling for control frame Tx */ |
2465 | rate_cmd.table_id = 0; | 2466 | rate_cmd.table_id = 0; |
2466 | rc = iwl3945_send_cmd_pdu(priv, REPLY_RATE_SCALE, sizeof(rate_cmd), | 2467 | rc = iwl_send_cmd_pdu(priv, REPLY_RATE_SCALE, sizeof(rate_cmd), |
2467 | &rate_cmd); | 2468 | &rate_cmd); |
2468 | if (rc) | 2469 | if (rc) |
2469 | return rc; | 2470 | return rc; |
2470 | 2471 | ||
2471 | /* Update the rate scaling for data frame Tx */ | 2472 | /* Update the rate scaling for data frame Tx */ |
2472 | rate_cmd.table_id = 1; | 2473 | rate_cmd.table_id = 1; |
2473 | return iwl3945_send_cmd_pdu(priv, REPLY_RATE_SCALE, sizeof(rate_cmd), | 2474 | return iwl_send_cmd_pdu(priv, REPLY_RATE_SCALE, sizeof(rate_cmd), |
2474 | &rate_cmd); | 2475 | &rate_cmd); |
2475 | } | 2476 | } |
2476 | 2477 | ||