1 From 426e7b4773921d07ab4ab8ba16fbad396d6c9971 Mon Sep 17 00:00:00 2001
2 From: Ping-Ke Shih <pkshih@realtek.com>
3 Date: Tue, 16 Jan 2024 16:09:44 +0800
4 Subject: [PATCH 1/2] wifi: rtl8xxxu: convert EN_DESC_ID of TX descriptor to
7 Fields of TX descriptor are little-endian order, so correct EN_DESC_ID
10 Fixes: b837f78fbffa ("wifi: rtl8xxxu: add hw crypto support for AP mode")
11 Reported-by: kernel test robot <lkp@intel.com>
12 Closes: https://lore.kernel.org/oe-kbuild-all/202401161318.YtXoCkjU-lkp@intel.com/
13 Cc: Martin Kaistra <martin.kaistra@linutronix.de>
14 Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
15 Signed-off-by: Kalle Valo <kvalo@kernel.org>
16 Link: https://msgid.link/20240116080945.20172-1-pkshih@realtek.com
18 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
21 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
22 +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
23 @@ -5619,7 +5619,7 @@ static void rtl8xxxu_tx(struct ieee80211
26 if (bmc && rtlvif->hw_key_idx != 0xff) {
27 - tx_desc->txdw1 |= TXDESC_EN_DESC_ID;
28 + tx_desc->txdw1 |= cpu_to_le32(TXDESC_EN_DESC_ID);
29 macid = rtlvif->hw_key_idx;