diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 16 |
1 files changed, 8 insertions, 8 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; |