diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index fb670b5cfebb..ca9ca92bb7fd 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -357,22 +357,22 @@ int iwl4965_hwrate_to_plcp_idx(u32 rate_n_flags) | |||
357 | * translate ucode response to mac80211 tx status control values | 357 | * translate ucode response to mac80211 tx status control values |
358 | */ | 358 | */ |
359 | void iwl4965_hwrate_to_tx_control(struct iwl_priv *priv, u32 rate_n_flags, | 359 | void iwl4965_hwrate_to_tx_control(struct iwl_priv *priv, u32 rate_n_flags, |
360 | struct ieee80211_tx_control *control) | 360 | struct ieee80211_tx_info *control) |
361 | { | 361 | { |
362 | int rate_index; | 362 | int rate_index; |
363 | 363 | ||
364 | control->antenna_sel_tx = | 364 | control->antenna_sel_tx = |
365 | ((rate_n_flags & RATE_MCS_ANT_ABC_MSK) >> RATE_MCS_ANT_POS); | 365 | ((rate_n_flags & RATE_MCS_ANT_ABC_MSK) >> RATE_MCS_ANT_POS); |
366 | if (rate_n_flags & RATE_MCS_HT_MSK) | 366 | if (rate_n_flags & RATE_MCS_HT_MSK) |
367 | control->flags |= IEEE80211_TXCTL_OFDM_HT; | 367 | control->flags |= IEEE80211_TX_CTL_OFDM_HT; |
368 | if (rate_n_flags & RATE_MCS_GF_MSK) | 368 | if (rate_n_flags & RATE_MCS_GF_MSK) |
369 | control->flags |= IEEE80211_TXCTL_GREEN_FIELD; | 369 | control->flags |= IEEE80211_TX_CTL_GREEN_FIELD; |
370 | if (rate_n_flags & RATE_MCS_FAT_MSK) | 370 | if (rate_n_flags & RATE_MCS_FAT_MSK) |
371 | control->flags |= IEEE80211_TXCTL_40_MHZ_WIDTH; | 371 | control->flags |= IEEE80211_TX_CTL_40_MHZ_WIDTH; |
372 | if (rate_n_flags & RATE_MCS_DUP_MSK) | 372 | if (rate_n_flags & RATE_MCS_DUP_MSK) |
373 | control->flags |= IEEE80211_TXCTL_DUP_DATA; | 373 | control->flags |= IEEE80211_TX_CTL_DUP_DATA; |
374 | if (rate_n_flags & RATE_MCS_SGI_MSK) | 374 | if (rate_n_flags & RATE_MCS_SGI_MSK) |
375 | control->flags |= IEEE80211_TXCTL_SHORT_GI; | 375 | control->flags |= IEEE80211_TX_CTL_SHORT_GI; |
376 | rate_index = iwl4965_hwrate_to_plcp_idx(rate_n_flags); | 376 | rate_index = iwl4965_hwrate_to_plcp_idx(rate_n_flags); |
377 | if (control->band == IEEE80211_BAND_5GHZ) | 377 | if (control->band == IEEE80211_BAND_5GHZ) |
378 | rate_index -= IWL_FIRST_OFDM_RATE; | 378 | rate_index -= IWL_FIRST_OFDM_RATE; |
@@ -3007,7 +3007,7 @@ static int iwl4965_tx_status_reply_compressed_ba(struct iwl_priv *priv, | |||
3007 | u16 scd_flow = le16_to_cpu(ba_resp->scd_flow); | 3007 | u16 scd_flow = le16_to_cpu(ba_resp->scd_flow); |
3008 | u64 bitmap; | 3008 | u64 bitmap; |
3009 | int successes = 0; | 3009 | int successes = 0; |
3010 | struct ieee80211_tx_status *tx_status; | 3010 | struct ieee80211_tx_info *info; |
3011 | 3011 | ||
3012 | if (unlikely(!agg->wait_for_ba)) { | 3012 | if (unlikely(!agg->wait_for_ba)) { |
3013 | IWL_ERROR("Received BA when not expected\n"); | 3013 | IWL_ERROR("Received BA when not expected\n"); |
@@ -3045,13 +3045,13 @@ static int iwl4965_tx_status_reply_compressed_ba(struct iwl_priv *priv, | |||
3045 | agg->start_idx + i); | 3045 | agg->start_idx + i); |
3046 | } | 3046 | } |
3047 | 3047 | ||
3048 | tx_status = &priv->txq[scd_flow].txb[agg->start_idx].status; | 3048 | info = IEEE80211_SKB_CB(priv->txq[scd_flow].txb[agg->start_idx].skb[0]); |
3049 | tx_status->flags = IEEE80211_TX_STATUS_ACK; | 3049 | memset(&info->status, 0, sizeof(info->status)); |
3050 | tx_status->flags |= IEEE80211_TX_STATUS_AMPDU; | 3050 | info->flags = IEEE80211_TX_STAT_ACK; |
3051 | tx_status->ampdu_ack_map = successes; | 3051 | info->flags |= IEEE80211_TX_STAT_AMPDU; |
3052 | tx_status->ampdu_ack_len = agg->frame_count; | 3052 | info->status.ampdu_ack_map = successes; |
3053 | iwl4965_hwrate_to_tx_control(priv, agg->rate_n_flags, | 3053 | info->status.ampdu_ack_len = agg->frame_count; |
3054 | &tx_status->control); | 3054 | iwl4965_hwrate_to_tx_control(priv, agg->rate_n_flags, info); |
3055 | 3055 | ||
3056 | IWL_DEBUG_TX_REPLY("Bitmap %llx\n", (unsigned long long)bitmap); | 3056 | IWL_DEBUG_TX_REPLY("Bitmap %llx\n", (unsigned long long)bitmap); |
3057 | 3057 | ||