From 2a502860d56962885d5b4eb689b76ce0239b8fd8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 19 Feb 2016 22:21:33 +0100 Subject: [PATCH] mt7603: fix a-mpdu status reporting Signed-off-by: Felix Fietkau --- mt7603_mac.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mt7603_mac.c b/mt7603_mac.c index 068a7260..3fbc7565 100644 --- a/mt7603_mac.c +++ b/mt7603_mac.c @@ -601,15 +601,15 @@ mt7603_fill_txs(struct mt7603_dev *dev, struct mt7603_sta *sta, } } - if (ampdu) { - sta->ampdu_count++; - if (!final_mpdu) - return; + sta->ampdu_count++; + if (ampdu && !final_mpdu) + return; - info->flags |= IEEE80211_TX_CTL_AMPDU | IEEE80211_TX_STAT_AMPDU; - info->status.ampdu_len = sta->ampdu_count; - info->status.ampdu_ack_len = sta->ampdu_acked; - } + info->status.ampdu_len = sta->ampdu_count; + info->status.ampdu_ack_len = sta->ampdu_acked; + + if (info->flags & IEEE80211_TX_CTL_AMPDU) + info->flags |= IEEE80211_TX_STAT_AMPDU; sta->ampdu_count = 0; sta->ampdu_acked = 0;