diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-05-04 22:22:33 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-14 16:29:44 -0400 |
commit | db11d6343aa14ab61258bfad9178042d4be49333 (patch) | |
tree | 410597e12de8951b68b875add1fe3577f240efa3 /drivers/net/wireless | |
parent | 8dd266ef4eb51d034fa1c5f9307a9ff07547d8e6 (diff) |
iwlwifi: remove 4965 from rx_packet
This patch removes 4965 mark from rx_packet.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 16 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-commands.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-hcmd.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 56 |
4 files changed, 39 insertions, 39 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index bd9d5ff7392d..f7e267e30ce6 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -2519,7 +2519,7 @@ static void iwl4965_rx_calc_noise(struct iwl_priv *priv) | |||
2519 | void iwl4965_hw_rx_statistics(struct iwl_priv *priv, | 2519 | void iwl4965_hw_rx_statistics(struct iwl_priv *priv, |
2520 | struct iwl_rx_mem_buffer *rxb) | 2520 | struct iwl_rx_mem_buffer *rxb) |
2521 | { | 2521 | { |
2522 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 2522 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
2523 | int change; | 2523 | int change; |
2524 | s32 temp; | 2524 | s32 temp; |
2525 | 2525 | ||
@@ -2807,7 +2807,7 @@ static void iwl4965_handle_data_packet(struct iwl_priv *priv, int is_data, | |||
2807 | struct iwl_rx_mem_buffer *rxb, | 2807 | struct iwl_rx_mem_buffer *rxb, |
2808 | struct ieee80211_rx_status *stats) | 2808 | struct ieee80211_rx_status *stats) |
2809 | { | 2809 | { |
2810 | struct iwl4965_rx_packet *pkt = (struct iwl4965_rx_packet *)rxb->skb->data; | 2810 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
2811 | struct iwl4965_rx_phy_res *rx_start = (include_phy) ? | 2811 | struct iwl4965_rx_phy_res *rx_start = (include_phy) ? |
2812 | (struct iwl4965_rx_phy_res *)&(pkt->u.raw[0]) : NULL; | 2812 | (struct iwl4965_rx_phy_res *)&(pkt->u.raw[0]) : NULL; |
2813 | struct ieee80211_hdr *hdr; | 2813 | struct ieee80211_hdr *hdr; |
@@ -2964,7 +2964,7 @@ static void iwl4965_update_ps_mode(struct iwl_priv *priv, u16 ps_bit, u8 *addr) | |||
2964 | * proper operation with 4965. | 2964 | * proper operation with 4965. |
2965 | */ | 2965 | */ |
2966 | static void iwl4965_dbg_report_frame(struct iwl_priv *priv, | 2966 | static void iwl4965_dbg_report_frame(struct iwl_priv *priv, |
2967 | struct iwl4965_rx_packet *pkt, | 2967 | struct iwl_rx_packet *pkt, |
2968 | struct ieee80211_hdr *header, int group100) | 2968 | struct ieee80211_hdr *header, int group100) |
2969 | { | 2969 | { |
2970 | u32 to_us; | 2970 | u32 to_us; |
@@ -3098,7 +3098,7 @@ static void iwl4965_dbg_report_frame(struct iwl_priv *priv, | |||
3098 | } | 3098 | } |
3099 | #else | 3099 | #else |
3100 | static inline void iwl4965_dbg_report_frame(struct iwl_priv *priv, | 3100 | static inline void iwl4965_dbg_report_frame(struct iwl_priv *priv, |
3101 | struct iwl4965_rx_packet *pkt, | 3101 | struct iwl_rx_packet *pkt, |
3102 | struct ieee80211_hdr *header, | 3102 | struct ieee80211_hdr *header, |
3103 | int group100) | 3103 | int group100) |
3104 | { | 3104 | { |
@@ -3114,7 +3114,7 @@ static void iwl4965_rx_reply_rx(struct iwl_priv *priv, | |||
3114 | { | 3114 | { |
3115 | struct ieee80211_hdr *header; | 3115 | struct ieee80211_hdr *header; |
3116 | struct ieee80211_rx_status rx_status; | 3116 | struct ieee80211_rx_status rx_status; |
3117 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 3117 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
3118 | /* Use phy data (Rx signal strength, etc.) contained within | 3118 | /* Use phy data (Rx signal strength, etc.) contained within |
3119 | * this rx packet for legacy frames, | 3119 | * this rx packet for legacy frames, |
3120 | * or phy data cached from REPLY_RX_PHY_CMD for HT frames. */ | 3120 | * or phy data cached from REPLY_RX_PHY_CMD for HT frames. */ |
@@ -3281,7 +3281,7 @@ static void iwl4965_rx_reply_rx(struct iwl_priv *priv, | |||
3281 | static void iwl4965_rx_reply_rx_phy(struct iwl_priv *priv, | 3281 | static void iwl4965_rx_reply_rx_phy(struct iwl_priv *priv, |
3282 | struct iwl_rx_mem_buffer *rxb) | 3282 | struct iwl_rx_mem_buffer *rxb) |
3283 | { | 3283 | { |
3284 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 3284 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
3285 | priv->last_phy_res[0] = 1; | 3285 | priv->last_phy_res[0] = 1; |
3286 | memcpy(&priv->last_phy_res[1], &(pkt->u.raw[0]), | 3286 | memcpy(&priv->last_phy_res[1], &(pkt->u.raw[0]), |
3287 | sizeof(struct iwl4965_rx_phy_res)); | 3287 | sizeof(struct iwl4965_rx_phy_res)); |
@@ -3291,7 +3291,7 @@ static void iwl4965_rx_missed_beacon_notif(struct iwl_priv *priv, | |||
3291 | 3291 | ||
3292 | { | 3292 | { |
3293 | #ifdef CONFIG_IWL4965_RUN_TIME_CALIB | 3293 | #ifdef CONFIG_IWL4965_RUN_TIME_CALIB |
3294 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 3294 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
3295 | struct iwl4965_missed_beacon_notif *missed_beacon; | 3295 | struct iwl4965_missed_beacon_notif *missed_beacon; |
3296 | 3296 | ||
3297 | missed_beacon = &pkt->u.missed_beacon; | 3297 | missed_beacon = &pkt->u.missed_beacon; |
@@ -3498,7 +3498,7 @@ static inline int iwl4965_queue_dec_wrap(int index, int n_bd) | |||
3498 | static void iwl4965_rx_reply_compressed_ba(struct iwl_priv *priv, | 3498 | static void iwl4965_rx_reply_compressed_ba(struct iwl_priv *priv, |
3499 | struct iwl_rx_mem_buffer *rxb) | 3499 | struct iwl_rx_mem_buffer *rxb) |
3500 | { | 3500 | { |
3501 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 3501 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
3502 | struct iwl4965_compressed_ba_resp *ba_resp = &pkt->u.compressed_ba; | 3502 | struct iwl4965_compressed_ba_resp *ba_resp = &pkt->u.compressed_ba; |
3503 | int index; | 3503 | int index; |
3504 | struct iwl4965_tx_queue *txq = NULL; | 3504 | struct iwl4965_tx_queue *txq = NULL; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h index 5afa7b79b59d..e5449b8c3359 100644 --- a/drivers/net/wireless/iwlwifi/iwl-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-commands.h | |||
@@ -2731,7 +2731,7 @@ struct iwl4965_led_cmd { | |||
2731 | * | 2731 | * |
2732 | *****************************************************************************/ | 2732 | *****************************************************************************/ |
2733 | 2733 | ||
2734 | struct iwl4965_rx_packet { | 2734 | struct iwl_rx_packet { |
2735 | __le32 len; | 2735 | __le32 len; |
2736 | struct iwl_cmd_header hdr; | 2736 | struct iwl_cmd_header hdr; |
2737 | union { | 2737 | union { |
diff --git a/drivers/net/wireless/iwlwifi/iwl-hcmd.c b/drivers/net/wireless/iwlwifi/iwl-hcmd.c index acb5a8abd786..0412adf6ef8b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-hcmd.c +++ b/drivers/net/wireless/iwlwifi/iwl-hcmd.c | |||
@@ -101,7 +101,7 @@ EXPORT_SYMBOL(get_cmd_string); | |||
101 | static int iwl_generic_cmd_callback(struct iwl_priv *priv, | 101 | static int iwl_generic_cmd_callback(struct iwl_priv *priv, |
102 | struct iwl_cmd *cmd, struct sk_buff *skb) | 102 | struct iwl_cmd *cmd, struct sk_buff *skb) |
103 | { | 103 | { |
104 | struct iwl4965_rx_packet *pkt = NULL; | 104 | struct iwl_rx_packet *pkt = NULL; |
105 | 105 | ||
106 | if (!skb) { | 106 | if (!skb) { |
107 | IWL_ERROR("Error: Response NULL in %s.\n", | 107 | IWL_ERROR("Error: Response NULL in %s.\n", |
@@ -109,7 +109,7 @@ static int iwl_generic_cmd_callback(struct iwl_priv *priv, | |||
109 | return 1; | 109 | return 1; |
110 | } | 110 | } |
111 | 111 | ||
112 | pkt = (struct iwl4965_rx_packet *)skb->data; | 112 | pkt = (struct iwl_rx_packet *)skb->data; |
113 | if (pkt->hdr.flags & IWL_CMD_FAILED_MSK) { | 113 | if (pkt->hdr.flags & IWL_CMD_FAILED_MSK) { |
114 | IWL_ERROR("Bad return from %s (0x%08X)\n", | 114 | IWL_ERROR("Bad return from %s (0x%08X)\n", |
115 | get_cmd_string(cmd->hdr.cmd), pkt->hdr.flags); | 115 | get_cmd_string(cmd->hdr.cmd), pkt->hdr.flags); |
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index 50757ff66bab..5b9cbbd197f6 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -902,8 +902,8 @@ static int iwl4965_send_bt_config(struct iwl_priv *priv) | |||
902 | 902 | ||
903 | static int iwl4965_send_scan_abort(struct iwl_priv *priv) | 903 | static int iwl4965_send_scan_abort(struct iwl_priv *priv) |
904 | { | 904 | { |
905 | int rc = 0; | 905 | int ret = 0; |
906 | struct iwl4965_rx_packet *res; | 906 | struct iwl_rx_packet *res; |
907 | struct iwl_host_cmd cmd = { | 907 | struct iwl_host_cmd cmd = { |
908 | .id = REPLY_SCAN_ABORT_CMD, | 908 | .id = REPLY_SCAN_ABORT_CMD, |
909 | .meta.flags = CMD_WANT_SKB, | 909 | .meta.flags = CMD_WANT_SKB, |
@@ -917,13 +917,13 @@ static int iwl4965_send_scan_abort(struct iwl_priv *priv) | |||
917 | return 0; | 917 | return 0; |
918 | } | 918 | } |
919 | 919 | ||
920 | rc = iwl_send_cmd_sync(priv, &cmd); | 920 | ret = iwl_send_cmd_sync(priv, &cmd); |
921 | if (rc) { | 921 | if (ret) { |
922 | clear_bit(STATUS_SCAN_ABORTING, &priv->status); | 922 | clear_bit(STATUS_SCAN_ABORTING, &priv->status); |
923 | return rc; | 923 | return ret; |
924 | } | 924 | } |
925 | 925 | ||
926 | res = (struct iwl4965_rx_packet *)cmd.meta.u.skb->data; | 926 | res = (struct iwl_rx_packet *)cmd.meta.u.skb->data; |
927 | if (res->u.status != CAN_ABORT_STATUS) { | 927 | if (res->u.status != CAN_ABORT_STATUS) { |
928 | /* The scan abort will return 1 for success or | 928 | /* The scan abort will return 1 for success or |
929 | * 2 for "failure". A failure condition can be | 929 | * 2 for "failure". A failure condition can be |
@@ -938,7 +938,7 @@ static int iwl4965_send_scan_abort(struct iwl_priv *priv) | |||
938 | 938 | ||
939 | dev_kfree_skb_any(cmd.meta.u.skb); | 939 | dev_kfree_skb_any(cmd.meta.u.skb); |
940 | 940 | ||
941 | return rc; | 941 | return ret; |
942 | } | 942 | } |
943 | 943 | ||
944 | /* | 944 | /* |
@@ -966,7 +966,7 @@ static int iwl4965_send_card_state(struct iwl_priv *priv, u32 flags, u8 meta_fla | |||
966 | int iwl4965_send_add_station(struct iwl_priv *priv, | 966 | int iwl4965_send_add_station(struct iwl_priv *priv, |
967 | struct iwl4965_addsta_cmd *sta, u8 flags) | 967 | struct iwl4965_addsta_cmd *sta, u8 flags) |
968 | { | 968 | { |
969 | struct iwl4965_rx_packet *res = NULL; | 969 | struct iwl_rx_packet *res = NULL; |
970 | int rc = 0; | 970 | int rc = 0; |
971 | struct iwl_host_cmd cmd = { | 971 | struct iwl_host_cmd cmd = { |
972 | .id = REPLY_ADD_STA, | 972 | .id = REPLY_ADD_STA, |
@@ -983,7 +983,7 @@ int iwl4965_send_add_station(struct iwl_priv *priv, | |||
983 | if (rc || (flags & CMD_ASYNC)) | 983 | if (rc || (flags & CMD_ASYNC)) |
984 | return rc; | 984 | return rc; |
985 | 985 | ||
986 | res = (struct iwl4965_rx_packet *)cmd.meta.u.skb->data; | 986 | res = (struct iwl_rx_packet *)cmd.meta.u.skb->data; |
987 | if (res->hdr.flags & IWL_CMD_FAILED_MSK) { | 987 | if (res->hdr.flags & IWL_CMD_FAILED_MSK) { |
988 | IWL_ERROR("Bad return from REPLY_ADD_STA (0x%08X)\n", | 988 | IWL_ERROR("Bad return from REPLY_ADD_STA (0x%08X)\n", |
989 | res->hdr.flags); | 989 | res->hdr.flags); |
@@ -2441,7 +2441,7 @@ static int iwl4965_get_measurement(struct iwl_priv *priv, | |||
2441 | u8 type) | 2441 | u8 type) |
2442 | { | 2442 | { |
2443 | struct iwl4965_spectrum_cmd spectrum; | 2443 | struct iwl4965_spectrum_cmd spectrum; |
2444 | struct iwl4965_rx_packet *res; | 2444 | struct iwl_rx_packet *res; |
2445 | struct iwl_host_cmd cmd = { | 2445 | struct iwl_host_cmd cmd = { |
2446 | .id = REPLY_SPECTRUM_MEASUREMENT_CMD, | 2446 | .id = REPLY_SPECTRUM_MEASUREMENT_CMD, |
2447 | .data = (void *)&spectrum, | 2447 | .data = (void *)&spectrum, |
@@ -2486,7 +2486,7 @@ static int iwl4965_get_measurement(struct iwl_priv *priv, | |||
2486 | if (rc) | 2486 | if (rc) |
2487 | return rc; | 2487 | return rc; |
2488 | 2488 | ||
2489 | res = (struct iwl4965_rx_packet *)cmd.meta.u.skb->data; | 2489 | res = (struct iwl_rx_packet *)cmd.meta.u.skb->data; |
2490 | if (res->hdr.flags & IWL_CMD_FAILED_MSK) { | 2490 | if (res->hdr.flags & IWL_CMD_FAILED_MSK) { |
2491 | IWL_ERROR("Bad return from REPLY_RX_ON_ASSOC command\n"); | 2491 | IWL_ERROR("Bad return from REPLY_RX_ON_ASSOC command\n"); |
2492 | rc = -EIO; | 2492 | rc = -EIO; |
@@ -2738,7 +2738,7 @@ static int iwl4965_tx_status_reply_tx(struct iwl_priv *priv, | |||
2738 | static void iwl4965_rx_reply_tx(struct iwl_priv *priv, | 2738 | static void iwl4965_rx_reply_tx(struct iwl_priv *priv, |
2739 | struct iwl_rx_mem_buffer *rxb) | 2739 | struct iwl_rx_mem_buffer *rxb) |
2740 | { | 2740 | { |
2741 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 2741 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
2742 | u16 sequence = le16_to_cpu(pkt->hdr.sequence); | 2742 | u16 sequence = le16_to_cpu(pkt->hdr.sequence); |
2743 | int txq_id = SEQ_TO_QUEUE(sequence); | 2743 | int txq_id = SEQ_TO_QUEUE(sequence); |
2744 | int index = SEQ_TO_INDEX(sequence); | 2744 | int index = SEQ_TO_INDEX(sequence); |
@@ -2851,7 +2851,7 @@ static void iwl4965_rx_reply_tx(struct iwl_priv *priv, | |||
2851 | static void iwl4965_rx_reply_alive(struct iwl_priv *priv, | 2851 | static void iwl4965_rx_reply_alive(struct iwl_priv *priv, |
2852 | struct iwl_rx_mem_buffer *rxb) | 2852 | struct iwl_rx_mem_buffer *rxb) |
2853 | { | 2853 | { |
2854 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 2854 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
2855 | struct iwl4965_alive_resp *palive; | 2855 | struct iwl4965_alive_resp *palive; |
2856 | struct delayed_work *pwork; | 2856 | struct delayed_work *pwork; |
2857 | 2857 | ||
@@ -2887,7 +2887,7 @@ static void iwl4965_rx_reply_alive(struct iwl_priv *priv, | |||
2887 | static void iwl4965_rx_reply_add_sta(struct iwl_priv *priv, | 2887 | static void iwl4965_rx_reply_add_sta(struct iwl_priv *priv, |
2888 | struct iwl_rx_mem_buffer *rxb) | 2888 | struct iwl_rx_mem_buffer *rxb) |
2889 | { | 2889 | { |
2890 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 2890 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
2891 | 2891 | ||
2892 | IWL_DEBUG_RX("Received REPLY_ADD_STA: 0x%02X\n", pkt->u.status); | 2892 | IWL_DEBUG_RX("Received REPLY_ADD_STA: 0x%02X\n", pkt->u.status); |
2893 | return; | 2893 | return; |
@@ -2896,7 +2896,7 @@ static void iwl4965_rx_reply_add_sta(struct iwl_priv *priv, | |||
2896 | static void iwl4965_rx_reply_error(struct iwl_priv *priv, | 2896 | static void iwl4965_rx_reply_error(struct iwl_priv *priv, |
2897 | struct iwl_rx_mem_buffer *rxb) | 2897 | struct iwl_rx_mem_buffer *rxb) |
2898 | { | 2898 | { |
2899 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 2899 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
2900 | 2900 | ||
2901 | IWL_ERROR("Error Reply type 0x%08X cmd %s (0x%02X) " | 2901 | IWL_ERROR("Error Reply type 0x%08X cmd %s (0x%02X) " |
2902 | "seq 0x%04X ser 0x%08X\n", | 2902 | "seq 0x%04X ser 0x%08X\n", |
@@ -2911,7 +2911,7 @@ static void iwl4965_rx_reply_error(struct iwl_priv *priv, | |||
2911 | 2911 | ||
2912 | static void iwl4965_rx_csa(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb) | 2912 | static void iwl4965_rx_csa(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb) |
2913 | { | 2913 | { |
2914 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 2914 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
2915 | struct iwl4965_rxon_cmd *rxon = (void *)&priv->active_rxon; | 2915 | struct iwl4965_rxon_cmd *rxon = (void *)&priv->active_rxon; |
2916 | struct iwl4965_csa_notification *csa = &(pkt->u.csa_notif); | 2916 | struct iwl4965_csa_notification *csa = &(pkt->u.csa_notif); |
2917 | IWL_DEBUG_11H("CSA notif: channel %d, status %d\n", | 2917 | IWL_DEBUG_11H("CSA notif: channel %d, status %d\n", |
@@ -2924,7 +2924,7 @@ static void iwl4965_rx_spectrum_measure_notif(struct iwl_priv *priv, | |||
2924 | struct iwl_rx_mem_buffer *rxb) | 2924 | struct iwl_rx_mem_buffer *rxb) |
2925 | { | 2925 | { |
2926 | #ifdef CONFIG_IWL4965_SPECTRUM_MEASUREMENT | 2926 | #ifdef CONFIG_IWL4965_SPECTRUM_MEASUREMENT |
2927 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 2927 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
2928 | struct iwl4965_spectrum_notification *report = &(pkt->u.spectrum_notif); | 2928 | struct iwl4965_spectrum_notification *report = &(pkt->u.spectrum_notif); |
2929 | 2929 | ||
2930 | if (!report->state) { | 2930 | if (!report->state) { |
@@ -2942,7 +2942,7 @@ static void iwl4965_rx_pm_sleep_notif(struct iwl_priv *priv, | |||
2942 | struct iwl_rx_mem_buffer *rxb) | 2942 | struct iwl_rx_mem_buffer *rxb) |
2943 | { | 2943 | { |
2944 | #ifdef CONFIG_IWLWIFI_DEBUG | 2944 | #ifdef CONFIG_IWLWIFI_DEBUG |
2945 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 2945 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
2946 | struct iwl4965_sleep_notification *sleep = &(pkt->u.sleep_notif); | 2946 | struct iwl4965_sleep_notification *sleep = &(pkt->u.sleep_notif); |
2947 | IWL_DEBUG_RX("sleep mode: %d, src: %d\n", | 2947 | IWL_DEBUG_RX("sleep mode: %d, src: %d\n", |
2948 | sleep->pm_sleep_mode, sleep->pm_wakeup_src); | 2948 | sleep->pm_sleep_mode, sleep->pm_wakeup_src); |
@@ -2952,7 +2952,7 @@ static void iwl4965_rx_pm_sleep_notif(struct iwl_priv *priv, | |||
2952 | static void iwl4965_rx_pm_debug_statistics_notif(struct iwl_priv *priv, | 2952 | static void iwl4965_rx_pm_debug_statistics_notif(struct iwl_priv *priv, |
2953 | struct iwl_rx_mem_buffer *rxb) | 2953 | struct iwl_rx_mem_buffer *rxb) |
2954 | { | 2954 | { |
2955 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 2955 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
2956 | IWL_DEBUG_RADIO("Dumping %d bytes of unhandled " | 2956 | IWL_DEBUG_RADIO("Dumping %d bytes of unhandled " |
2957 | "notification for %s:\n", | 2957 | "notification for %s:\n", |
2958 | le32_to_cpu(pkt->len), get_cmd_string(pkt->hdr.cmd)); | 2958 | le32_to_cpu(pkt->len), get_cmd_string(pkt->hdr.cmd)); |
@@ -2988,7 +2988,7 @@ static void iwl4965_rx_beacon_notif(struct iwl_priv *priv, | |||
2988 | struct iwl_rx_mem_buffer *rxb) | 2988 | struct iwl_rx_mem_buffer *rxb) |
2989 | { | 2989 | { |
2990 | #ifdef CONFIG_IWLWIFI_DEBUG | 2990 | #ifdef CONFIG_IWLWIFI_DEBUG |
2991 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 2991 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
2992 | struct iwl4965_beacon_notif *beacon = &(pkt->u.beacon_status); | 2992 | struct iwl4965_beacon_notif *beacon = &(pkt->u.beacon_status); |
2993 | u8 rate = iwl4965_hw_get_rate(beacon->beacon_notify_hdr.rate_n_flags); | 2993 | u8 rate = iwl4965_hw_get_rate(beacon->beacon_notify_hdr.rate_n_flags); |
2994 | 2994 | ||
@@ -3011,7 +3011,7 @@ static void iwl4965_rx_reply_scan(struct iwl_priv *priv, | |||
3011 | struct iwl_rx_mem_buffer *rxb) | 3011 | struct iwl_rx_mem_buffer *rxb) |
3012 | { | 3012 | { |
3013 | #ifdef CONFIG_IWLWIFI_DEBUG | 3013 | #ifdef CONFIG_IWLWIFI_DEBUG |
3014 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 3014 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
3015 | struct iwl4965_scanreq_notification *notif = | 3015 | struct iwl4965_scanreq_notification *notif = |
3016 | (struct iwl4965_scanreq_notification *)pkt->u.raw; | 3016 | (struct iwl4965_scanreq_notification *)pkt->u.raw; |
3017 | 3017 | ||
@@ -3023,7 +3023,7 @@ static void iwl4965_rx_reply_scan(struct iwl_priv *priv, | |||
3023 | static void iwl4965_rx_scan_start_notif(struct iwl_priv *priv, | 3023 | static void iwl4965_rx_scan_start_notif(struct iwl_priv *priv, |
3024 | struct iwl_rx_mem_buffer *rxb) | 3024 | struct iwl_rx_mem_buffer *rxb) |
3025 | { | 3025 | { |
3026 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 3026 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
3027 | struct iwl4965_scanstart_notification *notif = | 3027 | struct iwl4965_scanstart_notification *notif = |
3028 | (struct iwl4965_scanstart_notification *)pkt->u.raw; | 3028 | (struct iwl4965_scanstart_notification *)pkt->u.raw; |
3029 | priv->scan_start_tsf = le32_to_cpu(notif->tsf_low); | 3029 | priv->scan_start_tsf = le32_to_cpu(notif->tsf_low); |
@@ -3040,7 +3040,7 @@ static void iwl4965_rx_scan_start_notif(struct iwl_priv *priv, | |||
3040 | static void iwl4965_rx_scan_results_notif(struct iwl_priv *priv, | 3040 | static void iwl4965_rx_scan_results_notif(struct iwl_priv *priv, |
3041 | struct iwl_rx_mem_buffer *rxb) | 3041 | struct iwl_rx_mem_buffer *rxb) |
3042 | { | 3042 | { |
3043 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 3043 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
3044 | struct iwl4965_scanresults_notification *notif = | 3044 | struct iwl4965_scanresults_notification *notif = |
3045 | (struct iwl4965_scanresults_notification *)pkt->u.raw; | 3045 | (struct iwl4965_scanresults_notification *)pkt->u.raw; |
3046 | 3046 | ||
@@ -3065,7 +3065,7 @@ static void iwl4965_rx_scan_results_notif(struct iwl_priv *priv, | |||
3065 | static void iwl4965_rx_scan_complete_notif(struct iwl_priv *priv, | 3065 | static void iwl4965_rx_scan_complete_notif(struct iwl_priv *priv, |
3066 | struct iwl_rx_mem_buffer *rxb) | 3066 | struct iwl_rx_mem_buffer *rxb) |
3067 | { | 3067 | { |
3068 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 3068 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
3069 | struct iwl4965_scancomplete_notification *scan_notif = (void *)pkt->u.raw; | 3069 | struct iwl4965_scancomplete_notification *scan_notif = (void *)pkt->u.raw; |
3070 | 3070 | ||
3071 | IWL_DEBUG_SCAN("Scan complete: %d channels (TSF 0x%08X:%08X) - %d\n", | 3071 | IWL_DEBUG_SCAN("Scan complete: %d channels (TSF 0x%08X:%08X) - %d\n", |
@@ -3123,7 +3123,7 @@ reschedule: | |||
3123 | static void iwl4965_rx_card_state_notif(struct iwl_priv *priv, | 3123 | static void iwl4965_rx_card_state_notif(struct iwl_priv *priv, |
3124 | struct iwl_rx_mem_buffer *rxb) | 3124 | struct iwl_rx_mem_buffer *rxb) |
3125 | { | 3125 | { |
3126 | struct iwl4965_rx_packet *pkt = (void *)rxb->skb->data; | 3126 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
3127 | u32 flags = le32_to_cpu(pkt->u.card_state_notif.flags); | 3127 | u32 flags = le32_to_cpu(pkt->u.card_state_notif.flags); |
3128 | unsigned long status = priv->status; | 3128 | unsigned long status = priv->status; |
3129 | 3129 | ||
@@ -3243,7 +3243,7 @@ static void iwl4965_setup_rx_handlers(struct iwl_priv *priv) | |||
3243 | static void iwl4965_tx_cmd_complete(struct iwl_priv *priv, | 3243 | static void iwl4965_tx_cmd_complete(struct iwl_priv *priv, |
3244 | struct iwl_rx_mem_buffer *rxb) | 3244 | struct iwl_rx_mem_buffer *rxb) |
3245 | { | 3245 | { |
3246 | struct iwl4965_rx_packet *pkt = (struct iwl4965_rx_packet *)rxb->skb->data; | 3246 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
3247 | u16 sequence = le16_to_cpu(pkt->hdr.sequence); | 3247 | u16 sequence = le16_to_cpu(pkt->hdr.sequence); |
3248 | int txq_id = SEQ_TO_QUEUE(sequence); | 3248 | int txq_id = SEQ_TO_QUEUE(sequence); |
3249 | int index = SEQ_TO_INDEX(sequence); | 3249 | int index = SEQ_TO_INDEX(sequence); |
@@ -3298,7 +3298,7 @@ static void __iwl_rx_replenish(struct iwl_priv *priv) | |||
3298 | void iwl_rx_handle(struct iwl_priv *priv) | 3298 | void iwl_rx_handle(struct iwl_priv *priv) |
3299 | { | 3299 | { |
3300 | struct iwl_rx_mem_buffer *rxb; | 3300 | struct iwl_rx_mem_buffer *rxb; |
3301 | struct iwl4965_rx_packet *pkt; | 3301 | struct iwl_rx_packet *pkt; |
3302 | struct iwl_rx_queue *rxq = &priv->rxq; | 3302 | struct iwl_rx_queue *rxq = &priv->rxq; |
3303 | u32 r, i; | 3303 | u32 r, i; |
3304 | int reclaim; | 3304 | int reclaim; |
@@ -3331,7 +3331,7 @@ void iwl_rx_handle(struct iwl_priv *priv) | |||
3331 | pci_dma_sync_single_for_cpu(priv->pci_dev, rxb->dma_addr, | 3331 | pci_dma_sync_single_for_cpu(priv->pci_dev, rxb->dma_addr, |
3332 | priv->hw_params.rx_buf_size, | 3332 | priv->hw_params.rx_buf_size, |
3333 | PCI_DMA_FROMDEVICE); | 3333 | PCI_DMA_FROMDEVICE); |
3334 | pkt = (struct iwl4965_rx_packet *)rxb->skb->data; | 3334 | pkt = (struct iwl_rx_packet *)rxb->skb->data; |
3335 | 3335 | ||
3336 | /* Reclaim a command buffer only if this packet is a response | 3336 | /* Reclaim a command buffer only if this packet is a response |
3337 | * to a (driver-originated) command. | 3337 | * to a (driver-originated) command. |