Re: [PATCH wireless-next 7/7] wifi: brcmsmac: embed brcms_bss_cfg in brcms_c_info
From: Arend van Spriel
Date: Tue Nov 24 2026 - 15:14:48 EST
On Tue, 10 Nov 2026 20:25:54 -0800, Rosen Penev <rosenp@xxxxxxxxx> wrote:
> The driver only ever has one BSS configuration, and it has the same
> lifetime as struct brcms_c_info. Embed it directly instead of
> allocating it separately, removing one kzalloc()/kfree() pair and its
> OOM error path.
>
> Move the struct brcms_bss_cfg definition, unchanged, above struct
> brcms_c_info so that it is a complete type there.
>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> ---
> .../broadcom/brcm80211/brcmsmac/main.c | 48 ++++++-------
> .../broadcom/brcm80211/brcmsmac/main.h | 68 +++++++++----------
> 2 files changed, 55 insertions(+), 61 deletions(-)
Acked-by: Arend van Spriel <arend.vanspriel@xxxxxxxxxxxx>
Regards,
Arend