aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl3945-base.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-12-18 21:37:07 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:58:54 -0500
commit3d24a9f790c0e39cfdef1446c7100e89c542805c (patch)
treec439ca8d5141ae62fedb5437a5382a649d9ebe5e /drivers/net/wireless/iwlwifi/iwl3945-base.c
parent28afaf9139ce9f1c26452f34808e322e8e868850 (diff)
iwlwifi: 3945 remove iwl-3945-commands.h
This patch remove iwl-3945-commands.h eliminating duplicated and moving all definitions to iwl-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.c64
1 files changed, 31 insertions, 33 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 621e0877ca28..3d8669c6cc83 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -48,7 +48,6 @@
48 48
49#include "iwl-3945-core.h" 49#include "iwl-3945-core.h"
50#include "iwl-commands.h" 50#include "iwl-commands.h"
51#include "iwl-3945-commands.h"
52#include "iwl-3945.h" 51#include "iwl-3945.h"
53#include "iwl-3945-fh.h" 52#include "iwl-3945-fh.h"
54#include "iwl-helpers.h" 53#include "iwl-helpers.h"
@@ -970,7 +969,7 @@ static int iwl3945_full_rxon_required(struct iwl3945_priv *priv)
970static int iwl3945_send_rxon_assoc(struct iwl3945_priv *priv) 969static int iwl3945_send_rxon_assoc(struct iwl3945_priv *priv)
971{ 970{
972 int rc = 0; 971 int rc = 0;
973 struct iwl3945_rx_packet *res = NULL; 972 struct iwl_rx_packet *res = NULL;
974 struct iwl3945_rxon_assoc_cmd rxon_assoc; 973 struct iwl3945_rxon_assoc_cmd rxon_assoc;
975 struct iwl3945_host_cmd cmd = { 974 struct iwl3945_host_cmd cmd = {
976 .id = REPLY_RXON_ASSOC, 975 .id = REPLY_RXON_ASSOC,
@@ -999,7 +998,7 @@ static int iwl3945_send_rxon_assoc(struct iwl3945_priv *priv)
999 if (rc) 998 if (rc)
1000 return rc; 999 return rc;
1001 1000
1002 res = (struct iwl3945_rx_packet *)cmd.meta.u.skb->data; 1001 res = (struct iwl_rx_packet *)cmd.meta.u.skb->data;
1003 if (res->hdr.flags & IWL_CMD_FAILED_MSK) { 1002 if (res->hdr.flags & IWL_CMD_FAILED_MSK) {
1004 IWL_ERROR("Bad return from REPLY_RXON_ASSOC command\n"); 1003 IWL_ERROR("Bad return from REPLY_RXON_ASSOC command\n");
1005 rc = -EIO; 1004 rc = -EIO;
@@ -1154,7 +1153,7 @@ static int iwl3945_send_bt_config(struct iwl3945_priv *priv)
1154static int iwl3945_send_scan_abort(struct iwl3945_priv *priv) 1153static int iwl3945_send_scan_abort(struct iwl3945_priv *priv)
1155{ 1154{
1156 int rc = 0; 1155 int rc = 0;
1157 struct iwl3945_rx_packet *res; 1156 struct iwl_rx_packet *res;
1158 struct iwl3945_host_cmd cmd = { 1157 struct iwl3945_host_cmd cmd = {
1159 .id = REPLY_SCAN_ABORT_CMD, 1158 .id = REPLY_SCAN_ABORT_CMD,
1160 .meta.flags = CMD_WANT_SKB, 1159 .meta.flags = CMD_WANT_SKB,
@@ -1174,7 +1173,7 @@ static int iwl3945_send_scan_abort(struct iwl3945_priv *priv)
1174 return rc; 1173 return rc;
1175 } 1174 }
1176 1175
1177 res = (struct iwl3945_rx_packet *)cmd.meta.u.skb->data; 1176 res = (struct iwl_rx_packet *)cmd.meta.u.skb->data;
1178 if (res->u.status != CAN_ABORT_STATUS) { 1177 if (res->u.status != CAN_ABORT_STATUS) {
1179 /* The scan abort will return 1 for success or 1178 /* The scan abort will return 1 for success or
1180 * 2 for "failure". A failure condition can be 1179 * 2 for "failure". A failure condition can be
@@ -1227,14 +1226,14 @@ static int iwl3945_send_card_state(struct iwl3945_priv *priv, u32 flags, u8 meta
1227static int iwl3945_add_sta_sync_callback(struct iwl3945_priv *priv, 1226static int iwl3945_add_sta_sync_callback(struct iwl3945_priv *priv,
1228 struct iwl3945_cmd *cmd, struct sk_buff *skb) 1227 struct iwl3945_cmd *cmd, struct sk_buff *skb)
1229{ 1228{
1230 struct iwl3945_rx_packet *res = NULL; 1229 struct iwl_rx_packet *res = NULL;
1231 1230
1232 if (!skb) { 1231 if (!skb) {
1233 IWL_ERROR("Error: Response NULL in REPLY_ADD_STA.\n"); 1232 IWL_ERROR("Error: Response NULL in REPLY_ADD_STA.\n");
1234 return 1; 1233 return 1;
1235 } 1234 }
1236 1235
1237 res = (struct iwl3945_rx_packet *)skb->data; 1236 res = (struct iwl_rx_packet *)skb->data;
1238 if (res->hdr.flags & IWL_CMD_FAILED_MSK) { 1237 if (res->hdr.flags & IWL_CMD_FAILED_MSK) {
1239 IWL_ERROR("Bad return from REPLY_ADD_STA (0x%08X)\n", 1238 IWL_ERROR("Bad return from REPLY_ADD_STA (0x%08X)\n",
1240 res->hdr.flags); 1239 res->hdr.flags);
@@ -1255,7 +1254,7 @@ static int iwl3945_add_sta_sync_callback(struct iwl3945_priv *priv,
1255int iwl3945_send_add_station(struct iwl3945_priv *priv, 1254int iwl3945_send_add_station(struct iwl3945_priv *priv,
1256 struct iwl3945_addsta_cmd *sta, u8 flags) 1255 struct iwl3945_addsta_cmd *sta, u8 flags)
1257{ 1256{
1258 struct iwl3945_rx_packet *res = NULL; 1257 struct iwl_rx_packet *res = NULL;
1259 int rc = 0; 1258 int rc = 0;
1260 struct iwl3945_host_cmd cmd = { 1259 struct iwl3945_host_cmd cmd = {
1261 .id = REPLY_ADD_STA, 1260 .id = REPLY_ADD_STA,
@@ -1274,7 +1273,7 @@ int iwl3945_send_add_station(struct iwl3945_priv *priv,
1274 if (rc || (flags & CMD_ASYNC)) 1273 if (rc || (flags & CMD_ASYNC))
1275 return rc; 1274 return rc;
1276 1275
1277 res = (struct iwl3945_rx_packet *)cmd.meta.u.skb->data; 1276 res = (struct iwl_rx_packet *)cmd.meta.u.skb->data;
1278 if (res->hdr.flags & IWL_CMD_FAILED_MSK) { 1277 if (res->hdr.flags & IWL_CMD_FAILED_MSK) {
1279 IWL_ERROR("Bad return from REPLY_ADD_STA (0x%08X)\n", 1278 IWL_ERROR("Bad return from REPLY_ADD_STA (0x%08X)\n",
1280 res->hdr.flags); 1279 res->hdr.flags);
@@ -2869,7 +2868,7 @@ static int iwl3945_get_measurement(struct iwl3945_priv *priv,
2869 u8 type) 2868 u8 type)
2870{ 2869{
2871 struct iwl_spectrum_cmd spectrum; 2870 struct iwl_spectrum_cmd spectrum;
2872 struct iwl3945_rx_packet *res; 2871 struct iwl_rx_packet *res;
2873 struct iwl3945_host_cmd cmd = { 2872 struct iwl3945_host_cmd cmd = {
2874 .id = REPLY_SPECTRUM_MEASUREMENT_CMD, 2873 .id = REPLY_SPECTRUM_MEASUREMENT_CMD,
2875 .data = (void *)&spectrum, 2874 .data = (void *)&spectrum,
@@ -2914,7 +2913,7 @@ static int iwl3945_get_measurement(struct iwl3945_priv *priv,
2914 if (rc) 2913 if (rc)
2915 return rc; 2914 return rc;
2916 2915
2917 res = (struct iwl3945_rx_packet *)cmd.meta.u.skb->data; 2916 res = (struct iwl_rx_packet *)cmd.meta.u.skb->data;
2918 if (res->hdr.flags & IWL_CMD_FAILED_MSK) { 2917 if (res->hdr.flags & IWL_CMD_FAILED_MSK) {
2919 IWL_ERROR("Bad return from REPLY_RX_ON_ASSOC command\n"); 2918 IWL_ERROR("Bad return from REPLY_RX_ON_ASSOC command\n");
2920 rc = -EIO; 2919 rc = -EIO;
@@ -2946,8 +2945,8 @@ static int iwl3945_get_measurement(struct iwl3945_priv *priv,
2946static void iwl3945_rx_reply_alive(struct iwl3945_priv *priv, 2945static void iwl3945_rx_reply_alive(struct iwl3945_priv *priv,
2947 struct iwl3945_rx_mem_buffer *rxb) 2946 struct iwl3945_rx_mem_buffer *rxb)
2948{ 2947{
2949 struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; 2948 struct iwl_rx_packet *pkt = (void *)rxb->skb->data;
2950 struct iwl3945_alive_resp *palive; 2949 struct iwl_alive_resp *palive;
2951 struct delayed_work *pwork; 2950 struct delayed_work *pwork;
2952 2951
2953 palive = &pkt->u.alive_frame; 2952 palive = &pkt->u.alive_frame;
@@ -2959,14 +2958,13 @@ static void iwl3945_rx_reply_alive(struct iwl3945_priv *priv,
2959 2958
2960 if (palive->ver_subtype == INITIALIZE_SUBTYPE) { 2959 if (palive->ver_subtype == INITIALIZE_SUBTYPE) {
2961 IWL_DEBUG_INFO("Initialization Alive received.\n"); 2960 IWL_DEBUG_INFO("Initialization Alive received.\n");
2962 memcpy(&priv->card_alive_init, 2961 memcpy(&priv->card_alive_init, &pkt->u.alive_frame,
2963 &pkt->u.alive_frame, 2962 sizeof(struct iwl_alive_resp));
2964 sizeof(struct iwl3945_init_alive_resp));
2965 pwork = &priv->init_alive_start; 2963 pwork = &priv->init_alive_start;
2966 } else { 2964 } else {
2967 IWL_DEBUG_INFO("Runtime Alive received.\n"); 2965 IWL_DEBUG_INFO("Runtime Alive received.\n");
2968 memcpy(&priv->card_alive, &pkt->u.alive_frame, 2966 memcpy(&priv->card_alive, &pkt->u.alive_frame,
2969 sizeof(struct iwl3945_alive_resp)); 2967 sizeof(struct iwl_alive_resp));
2970 pwork = &priv->alive_start; 2968 pwork = &priv->alive_start;
2971 iwl3945_disable_events(priv); 2969 iwl3945_disable_events(priv);
2972 } 2970 }
@@ -2983,7 +2981,7 @@ static void iwl3945_rx_reply_alive(struct iwl3945_priv *priv,
2983static void iwl3945_rx_reply_add_sta(struct iwl3945_priv *priv, 2981static void iwl3945_rx_reply_add_sta(struct iwl3945_priv *priv,
2984 struct iwl3945_rx_mem_buffer *rxb) 2982 struct iwl3945_rx_mem_buffer *rxb)
2985{ 2983{
2986 struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; 2984 struct iwl_rx_packet *pkt = (void *)rxb->skb->data;
2987 2985
2988 IWL_DEBUG_RX("Received REPLY_ADD_STA: 0x%02X\n", pkt->u.status); 2986 IWL_DEBUG_RX("Received REPLY_ADD_STA: 0x%02X\n", pkt->u.status);
2989 return; 2987 return;
@@ -2992,7 +2990,7 @@ static void iwl3945_rx_reply_add_sta(struct iwl3945_priv *priv,
2992static void iwl3945_rx_reply_error(struct iwl3945_priv *priv, 2990static void iwl3945_rx_reply_error(struct iwl3945_priv *priv,
2993 struct iwl3945_rx_mem_buffer *rxb) 2991 struct iwl3945_rx_mem_buffer *rxb)
2994{ 2992{
2995 struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; 2993 struct iwl_rx_packet *pkt = (void *)rxb->skb->data;
2996 2994
2997 IWL_ERROR("Error Reply type 0x%08X cmd %s (0x%02X) " 2995 IWL_ERROR("Error Reply type 0x%08X cmd %s (0x%02X) "
2998 "seq 0x%04X ser 0x%08X\n", 2996 "seq 0x%04X ser 0x%08X\n",
@@ -3007,7 +3005,7 @@ static void iwl3945_rx_reply_error(struct iwl3945_priv *priv,
3007 3005
3008static void iwl3945_rx_csa(struct iwl3945_priv *priv, struct iwl3945_rx_mem_buffer *rxb) 3006static void iwl3945_rx_csa(struct iwl3945_priv *priv, struct iwl3945_rx_mem_buffer *rxb)
3009{ 3007{
3010 struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; 3008 struct iwl_rx_packet *pkt = (void *)rxb->skb->data;
3011 struct iwl3945_rxon_cmd *rxon = (void *)&priv->active_rxon; 3009 struct iwl3945_rxon_cmd *rxon = (void *)&priv->active_rxon;
3012 struct iwl_csa_notification *csa = &(pkt->u.csa_notif); 3010 struct iwl_csa_notification *csa = &(pkt->u.csa_notif);
3013 IWL_DEBUG_11H("CSA notif: channel %d, status %d\n", 3011 IWL_DEBUG_11H("CSA notif: channel %d, status %d\n",
@@ -3020,7 +3018,7 @@ static void iwl3945_rx_spectrum_measure_notif(struct iwl3945_priv *priv,
3020 struct iwl3945_rx_mem_buffer *rxb) 3018 struct iwl3945_rx_mem_buffer *rxb)
3021{ 3019{
3022#ifdef CONFIG_IWL3945_SPECTRUM_MEASUREMENT 3020#ifdef CONFIG_IWL3945_SPECTRUM_MEASUREMENT
3023 struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; 3021 struct iwl_rx_packet *pkt = (void *)rxb->skb->data;
3024 struct iwl_spectrum_notification *report = &(pkt->u.spectrum_notif); 3022 struct iwl_spectrum_notification *report = &(pkt->u.spectrum_notif);
3025 3023
3026 if (!report->state) { 3024 if (!report->state) {
@@ -3038,7 +3036,7 @@ static void iwl3945_rx_pm_sleep_notif(struct iwl3945_priv *priv,
3038 struct iwl3945_rx_mem_buffer *rxb) 3036 struct iwl3945_rx_mem_buffer *rxb)
3039{ 3037{
3040#ifdef CONFIG_IWL3945_DEBUG 3038#ifdef CONFIG_IWL3945_DEBUG
3041 struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; 3039 struct iwl_rx_packet *pkt = (void *)rxb->skb->data;
3042 struct iwl_sleep_notification *sleep = &(pkt->u.sleep_notif); 3040 struct iwl_sleep_notification *sleep = &(pkt->u.sleep_notif);
3043 IWL_DEBUG_RX("sleep mode: %d, src: %d\n", 3041 IWL_DEBUG_RX("sleep mode: %d, src: %d\n",
3044 sleep->pm_sleep_mode, sleep->pm_wakeup_src); 3042 sleep->pm_sleep_mode, sleep->pm_wakeup_src);
@@ -3048,7 +3046,7 @@ static void iwl3945_rx_pm_sleep_notif(struct iwl3945_priv *priv,
3048static void iwl3945_rx_pm_debug_statistics_notif(struct iwl3945_priv *priv, 3046static void iwl3945_rx_pm_debug_statistics_notif(struct iwl3945_priv *priv,
3049 struct iwl3945_rx_mem_buffer *rxb) 3047 struct iwl3945_rx_mem_buffer *rxb)
3050{ 3048{
3051 struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; 3049 struct iwl_rx_packet *pkt = (void *)rxb->skb->data;
3052 IWL_DEBUG_RADIO("Dumping %d bytes of unhandled " 3050 IWL_DEBUG_RADIO("Dumping %d bytes of unhandled "
3053 "notification for %s:\n", 3051 "notification for %s:\n",
3054 le32_to_cpu(pkt->len), get_cmd_string(pkt->hdr.cmd)); 3052 le32_to_cpu(pkt->len), get_cmd_string(pkt->hdr.cmd));
@@ -3084,7 +3082,7 @@ static void iwl3945_rx_beacon_notif(struct iwl3945_priv *priv,
3084 struct iwl3945_rx_mem_buffer *rxb) 3082 struct iwl3945_rx_mem_buffer *rxb)
3085{ 3083{
3086#ifdef CONFIG_IWL3945_DEBUG 3084#ifdef CONFIG_IWL3945_DEBUG
3087 struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; 3085 struct iwl_rx_packet *pkt = (void *)rxb->skb->data;
3088 struct iwl3945_beacon_notif *beacon = &(pkt->u.beacon_status); 3086 struct iwl3945_beacon_notif *beacon = &(pkt->u.beacon_status);
3089 u8 rate = beacon->beacon_notify_hdr.rate; 3087 u8 rate = beacon->beacon_notify_hdr.rate;
3090 3088
@@ -3107,7 +3105,7 @@ static void iwl3945_rx_reply_scan(struct iwl3945_priv *priv,
3107 struct iwl3945_rx_mem_buffer *rxb) 3105 struct iwl3945_rx_mem_buffer *rxb)
3108{ 3106{
3109#ifdef CONFIG_IWL3945_DEBUG 3107#ifdef CONFIG_IWL3945_DEBUG
3110 struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; 3108 struct iwl_rx_packet *pkt = (void *)rxb->skb->data;
3111 struct iwl_scanreq_notification *notif = 3109 struct iwl_scanreq_notification *notif =
3112 (struct iwl_scanreq_notification *)pkt->u.raw; 3110 (struct iwl_scanreq_notification *)pkt->u.raw;
3113 3111
@@ -3119,7 +3117,7 @@ static void iwl3945_rx_reply_scan(struct iwl3945_priv *priv,
3119static void iwl3945_rx_scan_start_notif(struct iwl3945_priv *priv, 3117static void iwl3945_rx_scan_start_notif(struct iwl3945_priv *priv,
3120 struct iwl3945_rx_mem_buffer *rxb) 3118 struct iwl3945_rx_mem_buffer *rxb)
3121{ 3119{
3122 struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; 3120 struct iwl_rx_packet *pkt = (void *)rxb->skb->data;
3123 struct iwl_scanstart_notification *notif = 3121 struct iwl_scanstart_notification *notif =
3124 (struct iwl_scanstart_notification *)pkt->u.raw; 3122 (struct iwl_scanstart_notification *)pkt->u.raw;
3125 priv->scan_start_tsf = le32_to_cpu(notif->tsf_low); 3123 priv->scan_start_tsf = le32_to_cpu(notif->tsf_low);
@@ -3136,7 +3134,7 @@ static void iwl3945_rx_scan_start_notif(struct iwl3945_priv *priv,
3136static void iwl3945_rx_scan_results_notif(struct iwl3945_priv *priv, 3134static void iwl3945_rx_scan_results_notif(struct iwl3945_priv *priv,
3137 struct iwl3945_rx_mem_buffer *rxb) 3135 struct iwl3945_rx_mem_buffer *rxb)
3138{ 3136{
3139 struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; 3137 struct iwl_rx_packet *pkt = (void *)rxb->skb->data;
3140 struct iwl_scanresults_notification *notif = 3138 struct iwl_scanresults_notification *notif =
3141 (struct iwl_scanresults_notification *)pkt->u.raw; 3139 (struct iwl_scanresults_notification *)pkt->u.raw;
3142 3140
@@ -3161,7 +3159,7 @@ static void iwl3945_rx_scan_results_notif(struct iwl3945_priv *priv,
3161static void iwl3945_rx_scan_complete_notif(struct iwl3945_priv *priv, 3159static void iwl3945_rx_scan_complete_notif(struct iwl3945_priv *priv,
3162 struct iwl3945_rx_mem_buffer *rxb) 3160 struct iwl3945_rx_mem_buffer *rxb)
3163{ 3161{
3164 struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; 3162 struct iwl_rx_packet *pkt = (void *)rxb->skb->data;
3165 struct iwl_scancomplete_notification *scan_notif = (void *)pkt->u.raw; 3163 struct iwl_scancomplete_notification *scan_notif = (void *)pkt->u.raw;
3166 3164
3167 IWL_DEBUG_SCAN("Scan complete: %d channels (TSF 0x%08X:%08X) - %d\n", 3165 IWL_DEBUG_SCAN("Scan complete: %d channels (TSF 0x%08X:%08X) - %d\n",
@@ -3224,7 +3222,7 @@ reschedule:
3224static void iwl3945_rx_card_state_notif(struct iwl3945_priv *priv, 3222static void iwl3945_rx_card_state_notif(struct iwl3945_priv *priv,
3225 struct iwl3945_rx_mem_buffer *rxb) 3223 struct iwl3945_rx_mem_buffer *rxb)
3226{ 3224{
3227 struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; 3225 struct iwl_rx_packet *pkt = (void *)rxb->skb->data;
3228 u32 flags = le32_to_cpu(pkt->u.card_state_notif.flags); 3226 u32 flags = le32_to_cpu(pkt->u.card_state_notif.flags);
3229 unsigned long status = priv->status; 3227 unsigned long status = priv->status;
3230 3228
@@ -3342,7 +3340,7 @@ static void iwl3945_cmd_queue_reclaim(struct iwl3945_priv *priv,
3342static void iwl3945_tx_cmd_complete(struct iwl3945_priv *priv, 3340static void iwl3945_tx_cmd_complete(struct iwl3945_priv *priv,
3343 struct iwl3945_rx_mem_buffer *rxb) 3341 struct iwl3945_rx_mem_buffer *rxb)
3344{ 3342{
3345 struct iwl3945_rx_packet *pkt = (struct iwl3945_rx_packet *)rxb->skb->data; 3343 struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data;
3346 u16 sequence = le16_to_cpu(pkt->hdr.sequence); 3344 u16 sequence = le16_to_cpu(pkt->hdr.sequence);
3347 int txq_id = SEQ_TO_QUEUE(sequence); 3345 int txq_id = SEQ_TO_QUEUE(sequence);
3348 int index = SEQ_TO_INDEX(sequence); 3346 int index = SEQ_TO_INDEX(sequence);
@@ -3804,7 +3802,7 @@ int iwl3945_calc_sig_qual(int rssi_dbm, int noise_dbm)
3804static void iwl3945_rx_handle(struct iwl3945_priv *priv) 3802static void iwl3945_rx_handle(struct iwl3945_priv *priv)
3805{ 3803{
3806 struct iwl3945_rx_mem_buffer *rxb; 3804 struct iwl3945_rx_mem_buffer *rxb;
3807 struct iwl3945_rx_packet *pkt; 3805 struct iwl_rx_packet *pkt;
3808 struct iwl3945_rx_queue *rxq = &priv->rxq; 3806 struct iwl3945_rx_queue *rxq = &priv->rxq;
3809 u32 r, i; 3807 u32 r, i;
3810 int reclaim; 3808 int reclaim;
@@ -3836,7 +3834,7 @@ static void iwl3945_rx_handle(struct iwl3945_priv *priv)
3836 pci_dma_sync_single_for_cpu(priv->pci_dev, rxb->dma_addr, 3834 pci_dma_sync_single_for_cpu(priv->pci_dev, rxb->dma_addr,
3837 IWL_RX_BUF_SIZE, 3835 IWL_RX_BUF_SIZE,
3838 PCI_DMA_FROMDEVICE); 3836 PCI_DMA_FROMDEVICE);
3839 pkt = (struct iwl3945_rx_packet *)rxb->skb->data; 3837 pkt = (struct iwl_rx_packet *)rxb->skb->data;
3840 3838
3841 /* Reclaim a command buffer only if this packet is a response 3839 /* Reclaim a command buffer only if this packet is a response
3842 * to a (driver-originated) command. 3840 * to a (driver-originated) command.
@@ -5837,7 +5835,7 @@ static void __iwl3945_down(struct iwl3945_priv *priv)
5837 iwl3945_hw_nic_reset(priv); 5835 iwl3945_hw_nic_reset(priv);
5838 5836
5839 exit: 5837 exit:
5840 memset(&priv->card_alive, 0, sizeof(struct iwl3945_alive_resp)); 5838 memset(&priv->card_alive, 0, sizeof(struct iwl_alive_resp));
5841 5839
5842 if (priv->ibss_beacon) 5840 if (priv->ibss_beacon)
5843 dev_kfree_skb(priv->ibss_beacon); 5841 dev_kfree_skb(priv->ibss_beacon);