Skip to content

Commit c2fcc83

Browse files
committed
wifi: mt76: mt7603: disable A-MSDU tx support on MT7628
It was reported that this can cause the PSE hang issues, even with a low number of fragments. Link: openwrt/mt76#793 (comment) Signed-off-by: Felix Fietkau <nbd@nbd.name>
1 parent 19e4f27 commit c2fcc83

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

drivers/net/wireless/mediatek/mt76/mac80211.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,8 @@ mt76_phy_init(struct mt76_phy *phy, struct ieee80211_hw *hw)
452452
ieee80211_hw_set(hw, SUPPORTS_AMSDU_IN_AMPDU);
453453
ieee80211_hw_set(hw, SUPPORTS_REORDERING_BUFFER);
454454

455-
if (!(dev->drv->drv_flags & MT_DRV_AMSDU_OFFLOAD)) {
455+
if (!(dev->drv->drv_flags & MT_DRV_AMSDU_OFFLOAD) &&
456+
hw->max_tx_fragments > 1) {
456457
ieee80211_hw_set(hw, TX_AMSDU);
457458
ieee80211_hw_set(hw, TX_FRAG_LIST);
458459
}

drivers/net/wireless/mediatek/mt76/mt7603/init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ int mt7603_register_device(struct mt7603_dev *dev)
524524
hw->max_rates = 3;
525525
hw->max_report_rates = 7;
526526
hw->max_rate_tries = 11;
527+
hw->max_tx_fragments = 1;
527528

528529
hw->radiotap_timestamp.units_pos =
529530
IEEE80211_RADIOTAP_TIMESTAMP_UNIT_US;

0 commit comments

Comments
 (0)