aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-3945.c
diff options
context:
space:
mode:
authorWinkler, Tomas <tomas.winkler@intel.com>2008-12-18 21:37:34 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:59:18 -0500
commitc2d79b488a33a77d337092c967ce50614edc5d25 (patch)
tree8cc6017c2cc01fb1cfda6d9f9de5bfcf23ed30bd /drivers/net/wireless/iwlwifi/iwl-3945.c
parent15b1687cb4f45b87ddbe4dfc7759ff5bb69497d2 (diff)
iwlwifi: use iwl_cmd instead of iwl3945_cmd
This patch makes use of iwl_cmd instead of iwl3945_cmd and related structures which were just the same. 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/net/wireless/iwlwifi/iwl-3945.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c
index 8cf40bcd6a05..422de88f128e 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
@@ -826,8 +826,7 @@ u8 iwl3945_hw_find_station(struct iwl_priv *priv, const u8 *addr)
826 * iwl3945_hw_build_tx_cmd_rate - Add rate portion to TX_CMD: 826 * iwl3945_hw_build_tx_cmd_rate - Add rate portion to TX_CMD:
827 * 827 *
828*/ 828*/
829void iwl3945_hw_build_tx_cmd_rate(struct iwl_priv *priv, 829void iwl3945_hw_build_tx_cmd_rate(struct iwl_priv *priv, struct iwl_cmd *cmd,
830 struct iwl3945_cmd *cmd,
831 struct ieee80211_tx_info *info, 830 struct ieee80211_tx_info *info,
832 struct ieee80211_hdr *hdr, int sta_id, int tx_id) 831 struct ieee80211_hdr *hdr, int sta_id, int tx_id)
833{ 832{
@@ -839,9 +838,10 @@ void iwl3945_hw_build_tx_cmd_rate(struct iwl_priv *priv,
839 u8 data_retry_limit; 838 u8 data_retry_limit;
840 __le32 tx_flags; 839 __le32 tx_flags;
841 __le16 fc = hdr->frame_control; 840 __le16 fc = hdr->frame_control;
841 struct iwl3945_tx_cmd *tx = (struct iwl3945_tx_cmd *)cmd->cmd.payload;
842 842
843 rate = iwl3945_rates[rate_index].plcp; 843 rate = iwl3945_rates[rate_index].plcp;
844 tx_flags = cmd->cmd.tx.tx_flags; 844 tx_flags = tx->tx_flags;
845 845
846 /* We need to figure out how to get the sta->supp_rates while 846 /* We need to figure out how to get the sta->supp_rates while
847 * in this running context */ 847 * in this running context */
@@ -878,22 +878,22 @@ void iwl3945_hw_build_tx_cmd_rate(struct iwl_priv *priv,
878 } 878 }
879 } 879 }
880 880
881 cmd->cmd.tx.rts_retry_limit = rts_retry_limit; 881 tx->rts_retry_limit = rts_retry_limit;
882 cmd->cmd.tx.data_retry_limit = data_retry_limit; 882 tx->data_retry_limit = data_retry_limit;
883 cmd->cmd.tx.rate = rate; 883 tx->rate = rate;
884 cmd->cmd.tx.tx_flags = tx_flags; 884 tx->tx_flags = tx_flags;
885 885
886 /* OFDM */ 886 /* OFDM */
887 cmd->cmd.tx.supp_rates[0] = 887 tx->supp_rates[0] =
888 ((rate_mask & IWL_OFDM_RATES_MASK) >> IWL_FIRST_OFDM_RATE) & 0xFF; 888 ((rate_mask & IWL_OFDM_RATES_MASK) >> IWL_FIRST_OFDM_RATE) & 0xFF;
889 889
890 /* CCK */ 890 /* CCK */
891 cmd->cmd.tx.supp_rates[1] = (rate_mask & 0xF); 891 tx->supp_rates[1] = (rate_mask & 0xF);
892 892
893 IWL_DEBUG_RATE("Tx sta id: %d, rate: %d (plcp), flags: 0x%4X " 893 IWL_DEBUG_RATE("Tx sta id: %d, rate: %d (plcp), flags: 0x%4X "
894 "cck/ofdm mask: 0x%x/0x%x\n", sta_id, 894 "cck/ofdm mask: 0x%x/0x%x\n", sta_id,
895 cmd->cmd.tx.rate, le32_to_cpu(cmd->cmd.tx.tx_flags), 895 tx->rate, le32_to_cpu(tx->tx_flags),
896 cmd->cmd.tx.supp_rates[1], cmd->cmd.tx.supp_rates[0]); 896 tx->supp_rates[1], tx->supp_rates[0]);
897} 897}
898 898
899u8 iwl3945_sync_sta(struct iwl_priv *priv, int sta_id, u16 tx_rate, u8 flags) 899u8 iwl3945_sync_sta(struct iwl_priv *priv, int sta_id, u16 tx_rate, u8 flags)