RE: [PATCH rtw-next 4/6] wifi: rtlwifi: rtl8192se: use ALIGN() for the H2C command length
From: Ping-Ke Shih
Date: Mon Nov 16 2026 - 21:41:21 EST
Rishik Yechuri <epicrishik@xxxxxxxxx> wrote:
> _rtl92s_fill_h2c_cmd() and _rtl92s_get_h2c_cmdlen() round each command
> length up to a multiple of 8 with N_BYTE_ALIGMENT() from wifi.h. The
> macro spells out the rounding by hand and special cases an alignment
> of 1. ALIGN() from <linux/align.h> gives the same result for a power
> of two.
Just say N_BYTE_ALIGMENT() is identical to ALIGN()...