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/iwlwifi/iwl4965-base.c | |
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/iwlwifi/iwl4965-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 56 |
1 files changed, 28 insertions, 28 deletions
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. |