004-01-v6.9-wifi-rtl8xxxu-convert-EN_DESC_ID-of-TX-descriptor-to.patch 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. From 426e7b4773921d07ab4ab8ba16fbad396d6c9971 Mon Sep 17 00:00:00 2001
  2. From: Ping-Ke Shih <[email protected]>
  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
  5. le32 type
  6. Fields of TX descriptor are little-endian order, so correct EN_DESC_ID
  7. field to le32 type.
  8. Fixes: b837f78fbffa ("wifi: rtl8xxxu: add hw crypto support for AP mode")
  9. Reported-by: kernel test robot <[email protected]>
  10. Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
  11. Cc: Martin Kaistra <[email protected]>
  12. Signed-off-by: Ping-Ke Shih <[email protected]>
  13. Signed-off-by: Kalle Valo <[email protected]>
  14. Link: https://msgid.link/[email protected]
  15. ---
  16. drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 2 +-
  17. 1 file changed, 1 insertion(+), 1 deletion(-)
  18. --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
  19. +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
  20. @@ -5619,7 +5619,7 @@ static void rtl8xxxu_tx(struct ieee80211
  21. break;
  22. }
  23. if (bmc && rtlvif->hw_key_idx != 0xff) {
  24. - tx_desc->txdw1 |= TXDESC_EN_DESC_ID;
  25. + tx_desc->txdw1 |= cpu_to_le32(TXDESC_EN_DESC_ID);
  26. macid = rtlvif->hw_key_idx;
  27. }
  28. }