mt76: do not send BAR frame on tx aggregation flush stop
Subsystems (2)
Felix Fietkau
maintainerPATCH 2/2 mt76: remove offchannel check in tx scheduling
In reply to Felix Fietkautx queues are already disabled by mac80211 during scanning or other off-channel activity. There is no need to repeat the check in mt76, since scheduled queues are selected by mac80211 as well.
Signed-off-by Balakrishna Bandi <[email protected]>
Signed-off-by Felix Fietkau <[email protected]>
--- drivers/net/wireless/mediatek/mt76/mac80211.c | 5 ----- drivers/net/wireless/mediatek/mt76/mt76.h | 1 - drivers/net/wireless/mediatek/mt76/tx.c | 6 ++---- 3 files changed, 2 insertions(+), 10 deletions(-)
drivers/net/wireless/mediatek/mt76/mac80211.c +0 -5
@@ -406,11 +406,6 @@ void mt76_set_channel(struct mt76_dev *dev)bool offchannel = hw->conf.flags &IEEE80211_CONF_OFFCHANNEL ;int timeout =HZ /5 ; -if (offchannel) -set_bit (MT76_OFFCHANNEL , &dev->state); -else -clear_bit (MT76_OFFCHANNEL , &dev->state); -wait_event_timeout (dev->tx_wait, !mt76_has_tx_pending (dev), timeout);if (dev->drv->update_survey)
drivers/net/wireless/mediatek/mt76/mt76.h +0 -1
@@ -272,7 +272,6 @@ enum {MT76_STATE_MCU_RUNNING ,MT76_SCANNING ,MT76_RESET , -MT76_OFFCHANNEL ,MT76_REMOVED , MT76_READING_STATS, };
drivers/net/wireless/mediatek/mt76/tx.c +2 -4
@@ -427,8 +427,7 @@ mt76_txq_send_burst(struct mt76_dev *dev, struct mt76_sw_queue *sq,if (probe)break ; -if (test_bit (MT76_OFFCHANNEL , &dev->state) || -test_bit (MT76_RESET , &dev->state)) +if (test_bit (MT76_RESET , &dev->state))return -EBUSY ; skb =mt76_txq_dequeue (dev, mtxq, false);
@@ -487,8 +486,7 @@ mt76_txq_schedule_list(struct mt76_dev *dev, enum mt76_txq_id qid)if (sq->swq_queued >=4 )break ; -if (test_bit (MT76_OFFCHANNEL , &dev->state) || -test_bit (MT76_RESET , &dev->state)) { +if (test_bit (MT76_RESET , &dev->state)) { ret = -EBUSY ;break ; }
Signature · 1 line
2.17.0
Felix Fietkau
maintainerPATCH 1/2 mt76: do not send BAR frame on tx aggregation flush stop
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 <[email protected]>
Signed-off-by Felix Fietkau <[email protected]>
--- drivers/net/wireless/mediatek/mt76/mt7603/main.c | 1 - drivers/net/wireless/mediatek/mt76/mt7615/main.c | 1 - drivers/net/wireless/mediatek/mt76/mt76x02_util.c | 1 - 3 files changed, 3 deletions(-)
drivers/net/wireless/mediatek/mt76/mt7603/main.c +0 -1
@@ -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 :
drivers/net/wireless/mediatek/mt76/mt7615/main.c +0 -1
@@ -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 :
drivers/net/wireless/mediatek/mt76/mt76x02_util.c +0 -1
@@ -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);
Signature · 1 line
2.17.0