wifi: rtw89: 8852c: add multi-port ID to TX descriptor
authorPo-Hao Huang <phhuang@realtek.com>
Fri, 16 Sep 2022 03:38:11 +0000 (11:38 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 19 Sep 2022 10:04:45 +0000 (13:04 +0300)
Update tx descriptor settings so broadcast packets on other ports can be
issued properly when DTIM count is 0. Before this, all broadcast packets
are sent via port 0 and won't be transmitted correctly.

Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220916033811.13862-8-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c

index e3086bf..8d2cce4 100644 (file)
@@ -997,7 +997,8 @@ static __le32 rtw89_build_txwd_info0(struct rtw89_tx_desc_info *desc_info)
 
 static __le32 rtw89_build_txwd_info0_v1(struct rtw89_tx_desc_info *desc_info)
 {
-       u32 dword = FIELD_PREP(RTW89_TXWD_INFO0_DISDATAFB, desc_info->dis_data_fb);
+       u32 dword = FIELD_PREP(RTW89_TXWD_INFO0_DISDATAFB, desc_info->dis_data_fb) |
+                   FIELD_PREP(RTW89_TXWD_INFO0_MULTIPORT_ID, desc_info->port);
 
        return cpu_to_le32(dword);
 }