Re: [PATCH v2] staging: rtl8723bs: replace magic number in InitBeaconParameters

From: Greg Kroah-Hartman

Date: Wed Jul 15 2026 - 10:12:58 EST


On Sat, Jul 11, 2026 at 12:09:02PM +0530, Anantha Krishnan wrote:
> Per the bitfield comment in hal_com_reg.h, REG_TBTT_PROHIBIT packs
> a "setup" time in bits 3:0 and a "hold" time in bits 19:8. The
> rtw_write16() call here only writes the low 16 bits of that
> register, covering the full setup field and the low byte of the
> hold field.
>
> Replace the magic number 0x6404 with two named constants
> representing these fields.
>
> No functional change.
>
> Bit-field positions are documented in the comment above
> REG_TBTT_PROHIBIT in drivers/staging/rtl8723bs/include/hal_com_reg.h.
>
> Signed-off-by: Anantha Krishnan <ananthanr.off@xxxxxxxxx>
> ---
> v2: Use full name in Signed-off-by and document the source of the
> bitfield values (comment above REG_TBTT_PROHIBIT in hal_com_reg.h)
> per Greg's review.
> drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)

This should be v3, as you already sent a v2 :(