diff options
author | Chun-Yeow Yeoh <yeohchunyeow@gmail.com> | 2014-04-02 00:03:18 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-04-09 13:55:54 -0400 |
commit | cdacdcc246827fe0aec9cbd4461edf073b4de7d5 (patch) | |
tree | 9b4438aa94aa39c7c620c5ee03d42ddf087bec0c | |
parent | d453ba81cd2981d0040dad0def161f91f209ddf9 (diff) |
ath9k_htc: set IEEE80211_TX_STAT_AMPDU for acked aggregated frames
Frame aggregation requires the IEEE80211_TX_STAT_AMPDU to
be set so that mac80211 can report the last_tx_rate correctly.
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c index e8149e3dbdd5..289f3d8924b5 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | |||
@@ -471,8 +471,11 @@ static void ath9k_htc_tx_process(struct ath9k_htc_priv *priv, | |||
471 | if (!txok || !vif || !txs) | 471 | if (!txok || !vif || !txs) |
472 | goto send_mac80211; | 472 | goto send_mac80211; |
473 | 473 | ||
474 | if (txs->ts_flags & ATH9K_HTC_TXSTAT_ACK) | 474 | if (txs->ts_flags & ATH9K_HTC_TXSTAT_ACK) { |
475 | tx_info->flags |= IEEE80211_TX_STAT_ACK; | 475 | tx_info->flags |= IEEE80211_TX_STAT_ACK; |
476 | if (tx_info->flags & IEEE80211_TX_CTL_AMPDU) | ||
477 | tx_info->flags |= IEEE80211_TX_STAT_AMPDU; | ||
478 | } | ||
476 | 479 | ||
477 | if (txs->ts_flags & ATH9K_HTC_TXSTAT_FILT) | 480 | if (txs->ts_flags & ATH9K_HTC_TXSTAT_FILT) |
478 | tx_info->flags |= IEEE80211_TX_STAT_TX_FILTERED; | 481 | tx_info->flags |= IEEE80211_TX_STAT_TX_FILTERED; |