Skip to content

Commit f601472

Browse files
committed
wifi: rtl8xxxu: convert EN_DESC_ID of TX descriptor to le32 type
JIRA: https://issues.redhat.com/browse/RHEL-34696 commit 426e7b4 Author: Ping-Ke Shih <pkshih@realtek.com> Date: Tue Jan 16 16:09:44 2024 +0800 wifi: rtl8xxxu: convert EN_DESC_ID of TX descriptor to le32 type Fields of TX descriptor are little-endian order, so correct EN_DESC_ID field to le32 type. Fixes: b837f78 ("wifi: rtl8xxxu: add hw crypto support for AP mode") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202401161318.YtXoCkjU-lkp@intel.com/ Cc: Martin Kaistra <martin.kaistra@linutronix.de> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://msgid.link/20240116080945.20172-1-pkshih@realtek.com Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
1 parent 8c963bb commit f601472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5619,7 +5619,7 @@ static void rtl8xxxu_tx(struct ieee80211_hw *hw,
56195619
break;
56205620
}
56215621
if (bmc && rtlvif->hw_key_idx != 0xff) {
5622-
tx_desc->txdw1 |= TXDESC_EN_DESC_ID;
5622+
tx_desc->txdw1 |= cpu_to_le32(TXDESC_EN_DESC_ID);
56235623
macid = rtlvif->hw_key_idx;
56245624
}
56255625
}

0 commit comments

Comments
 (0)