mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7996: Add missing DMA sync for EAPOL frames
Add missing DMA sync before updating EAPOL frames 802.11 addresses. Signed-off-by: Lorenzo Bianconi <[email protected]> Link: https://patch.msgid.link/20250909-mt7996-mlo-eapol-missing-dma-sync-v1-1-623924fdb875@kernel.org Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
b50c633f91
commit
ea99986935
@@ -1074,6 +1074,9 @@ int mt7996_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
|
||||
if (!link_sta)
|
||||
return -EINVAL;
|
||||
|
||||
dma_sync_single_for_cpu(mdev->dma_dev, tx_info->buf[1].addr,
|
||||
tx_info->buf[1].len, DMA_TO_DEVICE);
|
||||
|
||||
memcpy(hdr->addr1, link_sta->addr, ETH_ALEN);
|
||||
memcpy(hdr->addr2, link_conf->addr, ETH_ALEN);
|
||||
if (ieee80211_has_a4(hdr->frame_control)) {
|
||||
@@ -1084,6 +1087,9 @@ int mt7996_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
|
||||
} else if (ieee80211_has_fromds(hdr->frame_control)) {
|
||||
memcpy(hdr->addr3, vif->addr, ETH_ALEN);
|
||||
}
|
||||
|
||||
dma_sync_single_for_device(mdev->dma_dev, tx_info->buf[1].addr,
|
||||
tx_info->buf[1].len, DMA_TO_DEVICE);
|
||||
}
|
||||
|
||||
pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb);
|
||||
|
||||
Reference in New Issue
Block a user