]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mt76: do not send BAR frame on tx aggregation flush stop
authorFelix Fietkau <nbd@nbd.name>
Thu, 22 Aug 2019 07:37:41 +0000 (09:37 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 5 Sep 2019 15:42:32 +0000 (17:42 +0200)
There is no need to send a BAR frame after stopping aggregation, and doing
so could lead to sending class 3 frames after deauthentication from an AP

Signed-off-by: Balakrishna Bandi <b.balakrishna@globaledgesoft.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7603/main.c
drivers/net/wireless/mediatek/mt76/mt7615/main.c
drivers/net/wireless/mediatek/mt76/mt76x02_util.c

index e35c1e4da7eac79be1cdee438d04731a2500bf93..25d5b1608bc91d7e2cdc49e8d191826e1007d6db 100644 (file)
@@ -578,7 +578,6 @@ mt7603_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
        case IEEE80211_AMPDU_TX_STOP_FLUSH:
        case IEEE80211_AMPDU_TX_STOP_FLUSH_CONT:
                mtxq->aggr = false;
-               ieee80211_send_bar(vif, sta->addr, tid, mtxq->agg_ssn);
                mt7603_mac_tx_ba_reset(dev, msta->wcid.idx, tid, -1);
                break;
        case IEEE80211_AMPDU_TX_START:
index e2a84f717051dc84eaed1b2046539a0495f70937..87c748715b5d70091ae38ad66d0bf318941e9bcf 100644 (file)
@@ -473,7 +473,6 @@ mt7615_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
        case IEEE80211_AMPDU_TX_STOP_FLUSH:
        case IEEE80211_AMPDU_TX_STOP_FLUSH_CONT:
                mtxq->aggr = false;
-               ieee80211_send_bar(vif, sta->addr, tid, mtxq->agg_ssn);
                mt7615_mcu_set_tx_ba(dev, params, 0);
                break;
        case IEEE80211_AMPDU_TX_START:
index dbd9d99225ff144949478b0c8838d6f22ff1c8e0..aec73a0295e86eb800f38d9d47285b4a47faac13 100644 (file)
@@ -390,7 +390,6 @@ int mt76x02_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
        case IEEE80211_AMPDU_TX_STOP_FLUSH:
        case IEEE80211_AMPDU_TX_STOP_FLUSH_CONT:
                mtxq->aggr = false;
-               ieee80211_send_bar(vif, sta->addr, tid, mtxq->agg_ssn);
                break;
        case IEEE80211_AMPDU_TX_START:
                mtxq->agg_ssn = IEEE80211_SN_TO_SEQ(ssn);