Skip to content

Commit 59f4901

Browse files
P Praneeshjfvogel
authored andcommitted
wifi: ath12k: Fix end offset bit definition in monitor ring descriptor
[ Upstream commit 6788a66 ] End offset for the monitor destination ring descriptor is defined as 16 bits, while the firmware definition specifies only 12 bits. The remaining bits (bit 12 to bit 15) are reserved and may contain junk values, leading to invalid information retrieval. Fix this issue by updating the correct genmask values. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1 Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 Signed-off-by: P Praneesh <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jeff Johnson <[email protected]> Signed-off-by: Sasha Levin <[email protected]> (cherry picked from commit fb0d82562c07806c7b337c222c69f3c3323c01e1) Signed-off-by: Jack Vogel <[email protected]>
1 parent 469ece5 commit 59f4901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/ath/ath12k/hal_desc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2966,7 +2966,7 @@ struct hal_mon_buf_ring {
29662966

29672967
#define HAL_MON_DEST_COOKIE_BUF_ID GENMASK(17, 0)
29682968

2969-
#define HAL_MON_DEST_INFO0_END_OFFSET GENMASK(15, 0)
2969+
#define HAL_MON_DEST_INFO0_END_OFFSET GENMASK(11, 0)
29702970
#define HAL_MON_DEST_INFO0_FLUSH_DETECTED BIT(16)
29712971
#define HAL_MON_DEST_INFO0_END_OF_PPDU BIT(17)
29722972
#define HAL_MON_DEST_INFO0_INITIATOR BIT(18)

0 commit comments

Comments
 (0)