mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: fix A-MPDU density handling
The hardware requirements for A-MPDU density are entirely on the tx side, not the rx side. Because of that, the IE value should stay at 0 and the minimum value should instead be enforced in WTBL/TXWI MT7615 has no restrictions here Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -318,11 +318,16 @@ void mt7603_wtbl_update_cap(struct mt7603_dev *dev, struct ieee80211_sta *sta)
|
||||
{
|
||||
struct mt7603_sta *msta = (struct mt7603_sta *)sta->drv_priv;
|
||||
int idx = msta->wcid.idx;
|
||||
u8 ampdu_density;
|
||||
u32 addr;
|
||||
u32 val;
|
||||
|
||||
addr = mt7603_wtbl1_addr(idx);
|
||||
|
||||
ampdu_density = sta->ht_cap.ampdu_density;
|
||||
if (ampdu_density < IEEE80211_HT_MPDU_DENSITY_4)
|
||||
ampdu_density = IEEE80211_HT_MPDU_DENSITY_4;
|
||||
|
||||
val = mt76_rr(dev, addr + 2 * 4);
|
||||
val &= MT_WTBL1_W2_KEY_TYPE | MT_WTBL1_W2_ADMISSION_CONTROL;
|
||||
val |= FIELD_PREP(MT_WTBL1_W2_AMPDU_FACTOR, sta->ht_cap.ampdu_factor) |
|
||||
|
||||
Reference in New Issue
Block a user