From: Arend van Spriel <arend.vanspriel@broadcom.com>
To: Ragul Balaji <ragulbaby@gmail.com>
Cc: linux-wireless@vger.kernel.org,
Arend van Spriel <arend.vanspriel@broadcom.com>,
Johannes Berg <johannes@sipsolutions.net>,
brcm80211@lists.linux.dev, Ho Jie Feng <hjf3108@gmail.com>,
brcm80211-dev-list.pdl@broadcom.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH wireless-next v2 03/11] wifi: brcmsmac: look up OFDM rates in rate.c
Date: Thu, 3 Dec 2026 10:14:38 +0100 [thread overview]
Message-ID: <20261203091446.3360602-4-arend.vanspriel@broadcom.com> (raw)
In-Reply-To: <20261127061147.506129-4-ragulbaby@gmail.com>
On Fri, 27 Nov 2026 14:11:33 +0800, Ragul Balaji <ragulbaby@gmail.com> wrote:
> Move the OFDM rate table next to its only user, ofdm_phy2mac_rate(),
> which leaves rate.c independent of the PHY code. No functional change.
>
> Signed-off-by: Ragul Balaji <ragulbaby@gmail.com>
> Signed-off-by: Ho Jie Feng <hjf3108@gmail.com>
> ---
> .../broadcom/brcm80211/brcmsmac/phy/phy_cmn.c | 17 -----------------
> .../broadcom/brcm80211/brcmsmac/phy/phy_hal.h | 2 --
> .../broadcom/brcm80211/brcmsmac/rate.c | 19 +++++++++++++++++++
> .../broadcom/brcm80211/brcmsmac/rate.h | 7 -------
> 4 files changed, 19 insertions(+), 26 deletions(-)
[...]
> @@ -266,6 +266,25 @@ const struct brcms_c_rateset cck_rates = {
> 0x00, 0x00, 0x00, 0x00, 0x00}
> };
>
> +static const u8 ofdm_rate_lookup[] = {
> +
> + BRCM_RATE_48M,
> + BRCM_RATE_24M,
> + BRCM_RATE_12M,
> + BRCM_RATE_6M,
> + BRCM_RATE_54M,
> + BRCM_RATE_36M,
> + BRCM_RATE_18M,
> + BRCM_RATE_9M
> +};
> +
> +/* Convert encoded rate value in plcp header to numerical rates in 500 KHz
> + * increments */
> +static inline u8 ofdm_phy2mac_rate(u8 rlpt)
> +{
> + return ofdm_rate_lookup[rlpt & 0x7];
> +}
> +
> /* check if rateset is valid.
> * if check_brate is true, rateset without a basic rate is considered NOT valid.
> */
Now that this helper lives in a C file, please drop the explicit
inline and let the compiler decide. This resolves the reported
wifibot source_inline failure.
When fixed you may add my acknowledgement in v3.
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Regards,
Arend
next prev parent reply other threads:[~2026-12-03 9:15 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20261127061147.506129-1-ragulbaby@gmail.com>
2026-11-27 6:11 ` [PATCH wireless-next v2 01/11] wifi: brcmsmac: make d11.h self-contained Ragul Balaji
2026-12-03 9:14 ` Arend van Spriel
2026-11-27 6:11 ` [PATCH wireless-next v2 02/11] wifi: brcm80211: move d11.h to the shared include directory Ragul Balaji
2026-12-03 9:14 ` Arend van Spriel
2026-11-27 6:11 ` [PATCH wireless-next v2 03/11] wifi: brcmsmac: look up OFDM rates in rate.c Ragul Balaji
2026-12-03 9:14 ` Arend van Spriel [this message]
2026-11-27 6:11 ` [PATCH wireless-next v2 04/11] wifi: brcmsmac: give the rate tables and helpers a brcmu_ prefix Ragul Balaji
2026-12-03 9:14 ` Arend van Spriel
2026-11-27 6:11 ` [PATCH wireless-next v2 05/11] wifi: brcmsmac: round short-GI L-SIG lengths up to whole symbols Ragul Balaji
2026-12-03 9:14 ` Arend van Spriel
2026-11-27 6:11 ` [PATCH wireless-next v2 06/11] wifi: brcmsmac: pass the band to the PLCP and frame timing helpers Ragul Balaji
2026-12-03 9:14 ` Arend van Spriel
2026-11-27 6:11 ` [PATCH wireless-next v2 07/11] wifi: brcmsmac: move the PLCP and frame timing helpers to rate.c Ragul Balaji
2026-12-03 9:14 ` Arend van Spriel
2026-11-27 6:11 ` [PATCH wireless-next v2 08/11] wifi: brcmsmac: move the RTS rate selection " Ragul Balaji
2026-12-03 9:14 ` Arend van Spriel
2026-11-27 6:11 ` [PATCH wireless-next v2 09/11] wifi: brcm80211: move the rate helpers of brcmsmac to brcmutil Ragul Balaji
2026-12-03 9:14 ` Arend van Spriel
2026-11-27 6:11 ` [PATCH wireless-next v2 10/11] wifi: brcm80211: move the channel and rate tables " Ragul Balaji
2026-12-03 9:14 ` Arend van Spriel
2026-11-27 6:11 ` [PATCH wireless-next v2 11/11] wifi: brcm80211: move the USB bootloader definitions to a shared header Ragul Balaji
2026-12-03 9:14 ` Arend van Spriel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261203091446.3360602-4-arend.vanspriel@broadcom.com \
--to=arend.vanspriel@broadcom.com \
--cc=brcm80211-dev-list.pdl@broadcom.com \
--cc=brcm80211@lists.linux.dev \
--cc=hjf3108@gmail.com \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=ragulbaby@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®