Skip to content

Commit 811fc63

Browse files
LorenzoBianconigregkh
authored andcommitted
wifi: mt76: mt7996: Reset ampdu_state state in case of failure in mt7996_tx_check_aggr()
[ Upstream commit c0747db ] Reset the ampdu_state configured state if ieee80211_start_tx_ba_session routine fails in mt7996_tx_check_aggr() Fixes: 98686cd ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices") Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Link: https://patch.msgid.link/20251214-mt7996-aggr-check-fix-v1-1-33a8b62ec0fc@kernel.org Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent c575459 commit 811fc63

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • drivers/net/wireless/mediatek/mt76/mt7996

drivers/net/wireless/mediatek/mt76/mt7996/mac.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,8 +1270,9 @@ mt7996_tx_check_aggr(struct ieee80211_link_sta *link_sta,
12701270
if (unlikely(fc != (IEEE80211_FTYPE_DATA | IEEE80211_STYPE_QOS_DATA)))
12711271
return;
12721272

1273-
if (!test_and_set_bit(tid, &wcid->ampdu_state))
1274-
ieee80211_start_tx_ba_session(link_sta->sta, tid, 0);
1273+
if (!test_and_set_bit(tid, &wcid->ampdu_state) &&
1274+
ieee80211_start_tx_ba_session(link_sta->sta, tid, 0))
1275+
clear_bit(tid, &wcid->ampdu_state);
12751276
}
12761277

12771278
static void

0 commit comments

Comments
 (0)