From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.99 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796289317; b=EdFK05qu71fKjqXsBEmydXcVNLseFbZi8dPsDjaJbu6EuR6iiO6ADNdukJdeaAyE10ya 3VZM1c0Jz4elLHya+hYyEwGAjxJ336Rn28MOEKTIXaLhNSFJRKz7klkALmSvryJz6tOwf kSrEIFMfs7ooE6Bt2DyeCH9jhCdQmoBARUaiaPSt003RZXKQKZo1TCXqGT+CoS/maAZT0 wD1O0WpOrrc8nJ5Szd5MvSJhzHBhrgsoLiI4TMv+A51YtxivcgfcnctEZXg/N+hUFf7Qi AmBA4NmVTzOvf4PEb4xVxlzsrwYbk2xSQBN+Jpem/EUg+krA4UmHHqsdHUyar62NZzQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796289317; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:X-Relaying-Domain: X-CFilter-Loop:Received:DKIM-Signature:X-Forwarded-Encrypted: X-Received:X-Received:Received:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-DetectorID-Processed; bh=9SwawU2POOrBv3Vb2rRZIUSLQfJQdncU79uKVLFEDYk=; b=Z+vO8grSdVqeWxAOuZ1FhpTS01qWvBbQYxebeplLEoUoUDmloLLoKDj9jUUYfl7khilw 5yeCporWiODJGIkwFyKgAT6Gr7Cgcmh8MZQZXTkFcS5jnIwnw3t80KoS9vTgaFEwbbaqo J6gh3m4BMq+n/1EpdqaawW0T/6+namC3kjwqMYFUQAEhNySPBi6eVJGBWYuzaOjaebleR 1N6rT+qBAL+3icsn562dpI3TF+U7gUgifH3UCnKeKE58QtgNCe2Sg9pgUS3B72MG/N1m5 SAdN06gWST1uOMXPcLbGTXTYVDHFx3TJvCV4dNlPIAO3ATa9a7tv2zWXESOiDyuOjmg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass header.d=broadcom.com header.i=@broadcom.com header.a=rsa-sha256 header.s=google header.b="SlUGP/nh"; arc=none smtp.remote-ip=209.85.216.99 Received: from mail-pj1-f99.google.com (mail-pj1-f99.google.com [209.85.216.99]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A17CC606B2F4 for ; Thu, 3 Dec 2026 09:15:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A17CC606B2F4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.a=rsa-sha256 header.s=google header.b=SlUGP/nh Received: by mail-pj1-f99.google.com with SMTP id 98e67ed59e1d1-3b501791bb5so4155761a91.1 for ; Thu, 03 Dec 2026 01:15:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796289315; x=1796894115; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=9SwawU2POOrBv3Vb2rRZIUSLQfJQdncU79uKVLFEDYk=; b=vuGF1YB/AFZ+nIkeeiIQRei21I/N93rcLuRwd+UBQHy00u9vPP9AODlLnXlQ8+J3FP 9BA2hGC6EnusRnzWbE/x6s72TBFOmNl37CwS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QJd8QY6iVnM0J1LX2K9YnxPp97Z7NMZd7ifZmjrs6ZXz H9cIWuyStQdhhadQQVHV/QL1xT2mYbnaCpZ5MSHti1VQ== X-Received: by 2002:a17:90b:4b8b:b0:3b3:b9e4:e3ed with SMTP id 98e67ed59e1d1-3b41cb47a0cmr40464469a91.63.1796289314541; Thu, 03 Dec 2026 01:15:14 -0800 (PST) Received: from smtp-us-east1-p01-i01-si01.dlp.protect.broadcom.com (address-144-49-247-100.dlp.protect.broadcom.com. [144.49.247.100]) by smtp-relay.gmail.com with ESMTPS id 98e67ed59e1d1-3b5c7aa4d11sm1432275a91.4.2026.12.03.01.15.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Dec 2026 01:15:14 -0800 (PST) X-Relaying-Domain: broadcom.com X-CFilter-Loop: Reflected Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-55d2f5f1e1dso196467531cf.3 for ; Thu, 03 Dec 2026 01:15:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1796289313; x=1796894113; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=9SwawU2POOrBv3Vb2rRZIUSLQfJQdncU79uKVLFEDYk=; b=SlUGP/nh5h5HgL2D7kWHJydDY2YhDYajUI8fwd+16lIKaCSeUHJizCTBg/dplH4f4i eUs6/QlXeN4751e1E02yAB40rSjNcoFaECvx1oBlz/gTuMkh8nYxUvAiz9mHhMLXf8zg DHBeX/bm2J0Md6FCrOe78n4S7Ylk/jCCHdzFg= X-Forwarded-Encrypted: i=1; AL+hErG5MM1Pe+REZhlT1qACFuFV0YfzzSPFbHbEi3UtEikg+ho5Vb9iRH1UPk3gLEn5GzqfWm/E/6JHPc0C8Ms=@vger.kernel.org X-Received: by 2002:a05:622a:a05:b0:555:50da:f038 with SMTP id d75a77b69052e-55d768a3faemr821606821cf.1.1796289313092; Thu, 03 Dec 2026 01:15:13 -0800 (PST) X-Received: by 2002:a05:622a:a05:b0:555:50da:f038 with SMTP id d75a77b69052e-55d768a3faemr821606291cf.1.1796289312507; Thu, 03 Dec 2026 01:15:12 -0800 (PST) Received: from bld-bun-02.bun.broadcom.net ([192.19.176.227]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-55d784517casm356148441cf.3.2026.12.03.01.15.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 01:15:12 -0800 (PST) From: Arend van Spriel To: Ragul Balaji Cc: linux-wireless@vger.kernel.org, Arend van Spriel , Johannes Berg , brcm80211@lists.linux.dev, Ho Jie Feng , brcm80211-dev-list.pdl@broadcom.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH wireless-next v2 10/11] wifi: brcm80211: move the channel and rate tables of brcmsmac to brcmutil Date: Thu, 3 Dec 2026 10:14:45 +0100 Message-ID: <20261203091446.3360602-11-arend.vanspriel@broadcom.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261127061147.506129-11-ragulbaby@gmail.com> References: <20261127061147.506129-11-ragulbaby@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-DetectorID-Processed: b00c1d49-9d2e-4205-b15f-d015386d3d5e On Fri, 27 Nov 2026 14:11:40 +0800, Ragul Balaji 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 > Signed-off-by: Ho Jie Feng > --- > .../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