Re: [PATCH wireless-next v2 10/11] wifi: brcm80211: move the channel and rate tables of brcmsmac to brcmutil
From: Arend van Spriel
Date: Thu Dec 03 2026 - 04:16:07 EST
On Fri, 27 Nov 2026 14:11:40 +0800, Ragul Balaji <ragulbaby@xxxxxxxxx> wrote:
> Move the 2.4 and 5 GHz channel tables and the legacy rate table to
> brcmutil as constant tables, so that other drivers of the d11 core can
> register the same channels and rates.
>
> Also fixes a bug where multiple instances of brcmsmac share the same
> channel tables.
The per-instance copies fix shared-table mutation and are a functional
change unrelated to moving the tables into brcmutil. Please split this
into a standalone patch before the move, add a Fixes tag if it should
be backported, and state how it was tested although I suspect it has
not been tested with brcmsmac devices.
> Put a copy of the channel tables in struct brcms_info so that changes
> to one do not affect the rest of the instances.
>
> Signed-off-by: Ragul Balaji <ragulbaby@xxxxxxxxx>
> Signed-off-by: Ho Jie Feng <hjf3108@xxxxxxxxx>
> ---
> .../broadcom/brcm80211/brcmsmac/mac80211_if.c | 151 ++----------------
> .../broadcom/brcm80211/brcmsmac/mac80211_if.h | 9 +-
> .../broadcom/brcm80211/brcmutil/Makefile | 2 +-
> .../broadcom/brcm80211/brcmutil/band.c | 140 ++++++++++++++++
> .../broadcom/brcm80211/include/brcmu_band.h | 26 +++
> 5 files changed, 185 insertions(+), 143 deletions(-)
> create mode 100644 drivers/net/wireless/broadcom/brcm80211/brcmutil/band.c
> create mode 100644 drivers/net/wireless/broadcom/brcm80211/include/brcmu_band.h
Regards,
Arend