Re: [PATCH wireless-next 1/7] wifi: brcmsmac: embed bandstate arrays instead of separate allocation

From: Arend van Spriel

Date: Tue Nov 24 2026 - 15:14:28 EST


On Tue, 10 Nov 2026 20:25:48 -0800, Rosen Penev <rosenp@xxxxxxxxx> wrote:
> Replace the separately allocated per-band state (struct brcms_band in
> brcms_c_info and struct brcms_hw_band in brcms_hardware) with directly
> embedded fixed-size arrays. This removes the manual pointer arithmetic,
> two kzalloc()/kfree() pairs and their OOM error paths.
>
> MAXBANDS is 2, so the embedded arrays are small.
>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> ---
> .../broadcom/brcm80211/brcmsmac/channel.c | 8 +-
> .../broadcom/brcm80211/brcmsmac/mac80211_if.c | 4 +-
> .../broadcom/brcm80211/brcmsmac/main.c | 82 ++++++-------------
> .../broadcom/brcm80211/brcmsmac/main.h | 4 +-
> .../broadcom/brcm80211/brcmsmac/stf.c | 22 ++---
> 5 files changed, 44 insertions(+), 76 deletions(-)

Acked-by: Arend van Spriel <arend.vanspriel@xxxxxxxxxxxx>

Regards,
Arend