wifi: rtlwifi: rtl8192de: Fix endianness issue in RX path
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Thu, 25 Apr 2024 18:13:12 +0000 (21:13 +0300)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 2 May 2024 02:38:59 +0000 (10:38 +0800)
commit2f228d364da95ab58f63a3fedc00d5b2b7db16ab
treed3f4b550498fbecaba6b197372a06937d3a05771
parenta7c0f48410f546772ac94a0f7b7291a15c4fc173
wifi: rtlwifi: rtl8192de: Fix endianness issue in RX path

Structs rx_desc_92d and rx_fwinfo_92d will not work for big endian
systems.

Delete rx_desc_92d because it's big and barely used, and instead use
the get_rx_desc_rxmcs and get_rx_desc_rxht functions, which work on big
endian systems too.

Fix rx_fwinfo_92d by duplicating four of its members in the correct
order.

Tested only with RTL8192DU, which will use the same code.
Tested only on a little endian system.

Cc: stable@vger.kernel.org
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://msgid.link/698463da-5ef1-40c7-b744-fa51ad847caf@gmail.com
drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c
drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.h