mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
wifi: mt76: mt7996: fix wrong DMAD length when using MAC TXP
The struct mt76_connac_fw_txp is used for HIF TXP. Change to use the
struct mt76_connac_hw_txp to fix the wrong DMAD length for MAC TXP.
Fixes: cb6ebbdffe ("wifi: mt76: mt7996: support writing MAC TXD for AddBA Request")
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Link: https://patch.msgid.link/20260203155532.1098290-1-shayne.chen@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
02b7a65719
commit
97b9f9831b
|
|
@ -1100,10 +1100,10 @@ int mt7996_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
|
|||
* req
|
||||
*/
|
||||
if (le32_to_cpu(ptr[7]) & MT_TXD7_MAC_TXD) {
|
||||
u32 val;
|
||||
u32 val, mac_txp_size = sizeof(struct mt76_connac_hw_txp);
|
||||
|
||||
ptr = (__le32 *)(txwi + MT_TXD_SIZE);
|
||||
memset((void *)ptr, 0, sizeof(struct mt76_connac_fw_txp));
|
||||
memset((void *)ptr, 0, mac_txp_size);
|
||||
|
||||
val = FIELD_PREP(MT_TXP0_TOKEN_ID0, id) |
|
||||
MT_TXP0_TOKEN_ID0_VALID_MASK;
|
||||
|
|
@ -1122,6 +1122,8 @@ int mt7996_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
|
|||
tx_info->buf[1].addr >> 32);
|
||||
#endif
|
||||
ptr[3] = cpu_to_le32(val);
|
||||
|
||||
tx_info->buf[0].len = MT_TXD_SIZE + mac_txp_size;
|
||||
} else {
|
||||
struct mt76_connac_txp_common *txp;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user