Commit 426e7b47 authored by Ping-Ke Shih's avatar Ping-Ke Shih Committed by Kalle Valo
Browse files

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: b837f78f ("wifi: rtl8xxxu: add hw crypto support for AP mode")
Reported-by: default avatarkernel 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: default avatarPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240116080945.20172-1-pkshih@realtek.com
parent 12cfc9c8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5619,7 +5619,7 @@ static void rtl8xxxu_tx(struct ieee80211_hw *hw,
			break;
		}
		if (bmc && rtlvif->hw_key_idx != 0xff) {
			tx_desc->txdw1 |= TXDESC_EN_DESC_ID;
			tx_desc->txdw1 |= cpu_to_le32(TXDESC_EN_DESC_ID);
			macid = rtlvif->hw_key_idx;
		}
	}