diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-12-18 21:37:05 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:58:53 -0500 |
commit | 4c897253cc9ae1c6a2798b27b5fe8e6d94ab6185 (patch) | |
tree | fa9538d37c07da9134e35ce96e6e8a00fa956696 /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | 600c0e11ea6161e00e8cb4b4dda39a64ce988c60 (diff) |
iwlwifi: 3945 remove duplicated code from iwl-3945-commands.h
This patch remove trivial (renames) commands and defines
from iwl-3945-commands.h
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Acked-by: Samuel Ortiz <sameo@linux.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/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 13a0b9a3ec7d..0be3e7d97149 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -1139,7 +1139,7 @@ static int iwl3945_commit_rxon(struct iwl3945_priv *priv) | |||
1139 | 1139 | ||
1140 | static int iwl3945_send_bt_config(struct iwl3945_priv *priv) | 1140 | static int iwl3945_send_bt_config(struct iwl3945_priv *priv) |
1141 | { | 1141 | { |
1142 | struct iwl3945_bt_cmd bt_cmd = { | 1142 | struct iwl_bt_cmd bt_cmd = { |
1143 | .flags = 3, | 1143 | .flags = 3, |
1144 | .lead_time = 0xAA, | 1144 | .lead_time = 0xAA, |
1145 | .max_kill = 1, | 1145 | .max_kill = 1, |
@@ -1148,7 +1148,7 @@ static int iwl3945_send_bt_config(struct iwl3945_priv *priv) | |||
1148 | }; | 1148 | }; |
1149 | 1149 | ||
1150 | return iwl3945_send_cmd_pdu(priv, REPLY_BT_CONFIG, | 1150 | return iwl3945_send_cmd_pdu(priv, REPLY_BT_CONFIG, |
1151 | sizeof(struct iwl3945_bt_cmd), &bt_cmd); | 1151 | sizeof(bt_cmd), &bt_cmd); |
1152 | } | 1152 | } |
1153 | 1153 | ||
1154 | static int iwl3945_send_scan_abort(struct iwl3945_priv *priv) | 1154 | static int iwl3945_send_scan_abort(struct iwl3945_priv *priv) |
@@ -1343,7 +1343,8 @@ static int iwl3945_clear_sta_key_info(struct iwl3945_priv *priv, u8 sta_id) | |||
1343 | 1343 | ||
1344 | spin_lock_irqsave(&priv->sta_lock, flags); | 1344 | spin_lock_irqsave(&priv->sta_lock, flags); |
1345 | memset(&priv->stations[sta_id].keyinfo, 0, sizeof(struct iwl3945_hw_key)); | 1345 | memset(&priv->stations[sta_id].keyinfo, 0, sizeof(struct iwl3945_hw_key)); |
1346 | memset(&priv->stations[sta_id].sta.key, 0, sizeof(struct iwl3945_keyinfo)); | 1346 | memset(&priv->stations[sta_id].sta.key, 0, |
1347 | sizeof(struct iwl4965_keyinfo)); | ||
1347 | priv->stations[sta_id].sta.key.key_flags = STA_KEY_FLG_NO_ENC; | 1348 | priv->stations[sta_id].sta.key.key_flags = STA_KEY_FLG_NO_ENC; |
1348 | priv->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_KEY_MASK; | 1349 | priv->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_KEY_MASK; |
1349 | priv->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; | 1350 | priv->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; |
@@ -1672,11 +1673,11 @@ static u16 iwl3945_fill_probe_req(struct iwl3945_priv *priv, | |||
1672 | * QoS support | 1673 | * QoS support |
1673 | */ | 1674 | */ |
1674 | static int iwl3945_send_qos_params_command(struct iwl3945_priv *priv, | 1675 | static int iwl3945_send_qos_params_command(struct iwl3945_priv *priv, |
1675 | struct iwl3945_qosparam_cmd *qos) | 1676 | struct iwl_qosparam_cmd *qos) |
1676 | { | 1677 | { |
1677 | 1678 | ||
1678 | return iwl3945_send_cmd_pdu(priv, REPLY_QOS_PARAM, | 1679 | return iwl3945_send_cmd_pdu(priv, REPLY_QOS_PARAM, |
1679 | sizeof(struct iwl3945_qosparam_cmd), qos); | 1680 | sizeof(struct iwl_qosparam_cmd), qos); |
1680 | } | 1681 | } |
1681 | 1682 | ||
1682 | static void iwl3945_reset_qos(struct iwl3945_priv *priv) | 1683 | static void iwl3945_reset_qos(struct iwl3945_priv *priv) |
@@ -2581,7 +2582,7 @@ static int iwl3945_tx_skb(struct iwl3945_priv *priv, struct sk_buff *skb) | |||
2581 | * We'll tell device about this padding later. | 2582 | * We'll tell device about this padding later. |
2582 | */ | 2583 | */ |
2583 | len = priv->hw_setting.tx_cmd_len + | 2584 | len = priv->hw_setting.tx_cmd_len + |
2584 | sizeof(struct iwl3945_cmd_header) + hdr_len; | 2585 | sizeof(struct iwl_cmd_header) + hdr_len; |
2585 | 2586 | ||
2586 | len_org = len; | 2587 | len_org = len; |
2587 | len = (len + 3) & ~3; | 2588 | len = (len + 3) & ~3; |
@@ -3110,8 +3111,8 @@ static void iwl3945_rx_reply_scan(struct iwl3945_priv *priv, | |||
3110 | { | 3111 | { |
3111 | #ifdef CONFIG_IWL3945_DEBUG | 3112 | #ifdef CONFIG_IWL3945_DEBUG |
3112 | struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; | 3113 | struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; |
3113 | struct iwl3945_scanreq_notification *notif = | 3114 | struct iwl_scanreq_notification *notif = |
3114 | (struct iwl3945_scanreq_notification *)pkt->u.raw; | 3115 | (struct iwl_scanreq_notification *)pkt->u.raw; |
3115 | 3116 | ||
3116 | IWL_DEBUG_RX("Scan request status = 0x%x\n", notif->status); | 3117 | IWL_DEBUG_RX("Scan request status = 0x%x\n", notif->status); |
3117 | #endif | 3118 | #endif |
@@ -3122,8 +3123,8 @@ static void iwl3945_rx_scan_start_notif(struct iwl3945_priv *priv, | |||
3122 | struct iwl3945_rx_mem_buffer *rxb) | 3123 | struct iwl3945_rx_mem_buffer *rxb) |
3123 | { | 3124 | { |
3124 | struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; | 3125 | struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; |
3125 | struct iwl3945_scanstart_notification *notif = | 3126 | struct iwl_scanstart_notification *notif = |
3126 | (struct iwl3945_scanstart_notification *)pkt->u.raw; | 3127 | (struct iwl_scanstart_notification *)pkt->u.raw; |
3127 | priv->scan_start_tsf = le32_to_cpu(notif->tsf_low); | 3128 | priv->scan_start_tsf = le32_to_cpu(notif->tsf_low); |
3128 | IWL_DEBUG_SCAN("Scan start: " | 3129 | IWL_DEBUG_SCAN("Scan start: " |
3129 | "%d [802.11%s] " | 3130 | "%d [802.11%s] " |
@@ -3139,8 +3140,8 @@ static void iwl3945_rx_scan_results_notif(struct iwl3945_priv *priv, | |||
3139 | struct iwl3945_rx_mem_buffer *rxb) | 3140 | struct iwl3945_rx_mem_buffer *rxb) |
3140 | { | 3141 | { |
3141 | struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; | 3142 | struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; |
3142 | struct iwl3945_scanresults_notification *notif = | 3143 | struct iwl_scanresults_notification *notif = |
3143 | (struct iwl3945_scanresults_notification *)pkt->u.raw; | 3144 | (struct iwl_scanresults_notification *)pkt->u.raw; |
3144 | 3145 | ||
3145 | IWL_DEBUG_SCAN("Scan ch.res: " | 3146 | IWL_DEBUG_SCAN("Scan ch.res: " |
3146 | "%d [802.11%s] " | 3147 | "%d [802.11%s] " |
@@ -3164,7 +3165,7 @@ static void iwl3945_rx_scan_complete_notif(struct iwl3945_priv *priv, | |||
3164 | struct iwl3945_rx_mem_buffer *rxb) | 3165 | struct iwl3945_rx_mem_buffer *rxb) |
3165 | { | 3166 | { |
3166 | struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; | 3167 | struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; |
3167 | struct iwl3945_scancomplete_notification *scan_notif = (void *)pkt->u.raw; | 3168 | struct iwl_scancomplete_notification *scan_notif = (void *)pkt->u.raw; |
3168 | 3169 | ||
3169 | IWL_DEBUG_SCAN("Scan complete: %d channels (TSF 0x%08X:%08X) - %d\n", | 3170 | IWL_DEBUG_SCAN("Scan complete: %d channels (TSF 0x%08X:%08X) - %d\n", |
3170 | scan_notif->scanned_channels, | 3171 | scan_notif->scanned_channels, |