mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 00:29:36 -04:00
wifi: ath12k: fix macro definition HAL_RX_MSDU_PKT_LENGTH_GET
Currently, HAL_RX_MSDU_PKT_LENGTH_GET uses u32_get_bits to obtain the MSDU length from the MSDU description. This is not right. Because all halphy descriptions are little endian. So use le32_get_bits for HAL_RX_MSDU_PKT_LENGTH_GET. Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1 Signed-off-by: Kang Yang <kang.yang@oss.qualcomm.com> Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com> Link: https://patch.msgid.link/20250421023444.1778-9-kang.yang@oss.qualcomm.com Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
This commit is contained in:
@@ -707,7 +707,7 @@ enum hal_rx_msdu_desc_reo_dest_ind {
|
||||
#define RX_MSDU_DESC_INFO0_DECAP_FORMAT GENMASK(30, 29)
|
||||
|
||||
#define HAL_RX_MSDU_PKT_LENGTH_GET(val) \
|
||||
(u32_get_bits((val), RX_MSDU_DESC_INFO0_MSDU_LENGTH))
|
||||
(le32_get_bits((val), RX_MSDU_DESC_INFO0_MSDU_LENGTH))
|
||||
|
||||
struct rx_msdu_desc {
|
||||
__le32 info0;
|
||||
|
||||
Reference in New Issue
Block a user