developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 1 | From a940bcb3617bec4f302f1b271fce9d65f56cdd97 Mon Sep 17 00:00:00 2001 |
developer | bb6ddff | 2023-03-08 17:22:32 +0800 | [diff] [blame] | 2 | From: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 3 | Date: Mon, 6 Mar 2023 15:52:26 +0800 |
developer | f552fec | 2023-03-27 11:22:06 +0800 | [diff] [blame] | 4 | Subject: [PATCH 18/29] wifi: mt76: mt7996: set wcid in txp |
developer | bb6ddff | 2023-03-08 17:22:32 +0800 | [diff] [blame] | 5 | |
| 6 | Set correct wcid in txp for SDO to get wtbl. |
| 7 | |
| 8 | Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 9 | --- |
| 10 | mt7996/mac.c | 8 +++++--- |
| 11 | 1 file changed, 5 insertions(+), 3 deletions(-) |
| 12 | |
| 13 | diff --git a/mt7996/mac.c b/mt7996/mac.c |
| 14 | index 4c0c8f1e..bb23f531 100644 |
| 15 | --- a/mt7996/mac.c |
| 16 | +++ b/mt7996/mac.c |
| 17 | @@ -1168,10 +1168,12 @@ int mt7996_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr, |
| 18 | } |
| 19 | |
| 20 | txp->fw.token = cpu_to_le16(id); |
| 21 | - if (test_bit(MT_WCID_FLAG_4ADDR, &wcid->flags)) |
| 22 | - txp->fw.rept_wds_wcid = cpu_to_le16(wcid->idx); |
| 23 | - else |
| 24 | + if ((is_8023 && is_multicast_ether_addr(tx_info->skb->data)) || |
| 25 | + is_multicast_ether_addr(hdr->addr1)) |
| 26 | txp->fw.rept_wds_wcid = cpu_to_le16(0xfff); |
| 27 | + else |
| 28 | + txp->fw.rept_wds_wcid = cpu_to_le16(wcid->idx); |
| 29 | + |
| 30 | tx_info->skb = DMA_DUMMY_DATA; |
| 31 | |
| 32 | /* pass partial skb header to fw */ |
| 33 | -- |
| 34 | 2.39.2 |
| 35 | |