summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-05-07 12:02:10 +0200
committerKalle Valo <kvalo@codeaurora.org>2021-05-15 14:43:57 +0300
commitd6245712add0af27f64d66793bf9c00f882e2d15 (patch)
tree50a51cdc06e1ac184892b8c1cee14edae51d6f16
parent6061fcf4820a2036189d0a6215f75a913f0fb5a1 (diff)
downloadlinux-d6245712add0af27f64d66793bf9c00f882e2d15.tar.gz
linux-d6245712add0af27f64d66793bf9c00f882e2d15.tar.bz2
linux-d6245712add0af27f64d66793bf9c00f882e2d15.zip
mt76: connac: fix HT A-MPDU setting field in STA_REC_PHY
The MT7921 firmware needs this to enable tx A-MPDU properly Reported-by: Jayden Kuo (郭育辰) <Jayden.Kuo@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20210507100211.15709-1-nbd@nbd.name
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
index fe0ab5e5ff81..619561606f96 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
@@ -721,6 +721,10 @@ void mt76_connac_mcu_sta_tlv(struct mt76_phy *mphy, struct sk_buff *skb,
phy->phy_type = mt76_connac_get_phy_mode_v2(mphy, vif, band, sta);
phy->basic_rate = cpu_to_le16((u16)vif->bss_conf.basic_rates);
phy->rcpi = rcpi;
+ phy->ampdu = FIELD_PREP(IEEE80211_HT_AMPDU_PARM_FACTOR,
+ sta->ht_cap.ampdu_factor) |
+ FIELD_PREP(IEEE80211_HT_AMPDU_PARM_DENSITY,
+ sta->ht_cap.ampdu_density);
tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_RA, sizeof(*ra_info));
ra_info = (struct sta_rec_ra_info *)tlv;