linux/drivers/net/wireless/broadcom/b43
Alessio Ferri 2135261219 b43: add RF power offset for N-PHY r8 + radio 2057 r8
Add the 2.4 GHz RF power offset table for N-PHY rev 8 paired with
radio 2057 rev 8 and wire it to the existing dispatcher.

b43_ntab_get_rf_pwr_offset_table() currently dispatches on phy->rev
== 17 (radio_rev 14) and phy->rev == 16 (radio_rev 9) for 2.4 GHz.
phy->rev == 8 falls through and the function logs:

    b43-phyX ERROR: No 2GHz RF power table available for this device

Add a phy->rev == 8 / radio_rev == 8 case returning the new table.

The values are sourced from the proprietary Broadcom wl driver's
nphy_papd_padgain_dlt_2g_2057rev5 array. Reusing the rev 5 values
is structurally appropriate: the IPA TX gain table added by the
preceding patch in this series shares the low 24 bits of every
entry with rev 5 - same gain step amplitudes, only the PAD-gain
selector byte differs. b43's pad_gain extraction in
b43_nphy_tx_pwr_ctl_init() reads bits 19..23 of the gain entry,
which sit in the shared low-24-bit range; the same gain index
therefore maps to the same physical PAD gain code on both
revisions and warrants the same per-index dB offset.

Note that b43_nphy_tx_gain_table_upload() currently has a "TODO:
Enable this once we have gains configured" early-return for
phy->rev >= 7. With that early-return in place, this table is
fetched (silencing the b43err that would otherwise abort PHY
init) but its values are not yet written to MMIO. Resolving the
TODO is a future, separate task.

Assisted-by: Claude:claude-4.7-opus
Signed-off-by: Alessio Ferri <alessio.ferri@mythread.it>
Acked-by: Michael Büsch <m@bues.ch>
Reviewed-by: Joshua Peisach <jpeisach@ubuntu.com>
Link: https://patch.msgid.link/20260528-b43_complete_n_phy_rev_8_radio_2057_rev_8_support-v4-7-464566194d47@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-06-10 10:27:56 +02:00
..
b43.h wifi: b43: Stop/wake correct queue in DMA Tx path when QoS is disabled 2024-01-10 16:56:17 +02:00
bus.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
bus.h
debugfs.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
debugfs.h
dma.c wifi: b43: kzalloc + kcalloc to kzalloc_flex 2026-03-24 16:32:45 +01:00
dma.h wifi: b43: kzalloc + kcalloc to kzalloc_flex 2026-03-24 16:32:45 +01:00
Kconfig
leds.c wifi: move from strlcpy with unused retval to strscpy 2022-09-02 11:47:22 +03:00
leds.h
lo.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
lo.h
main.c b43: support radio 2057 rev 8 2026-06-10 10:27:53 +02:00
main.h
Makefile
phy_a.h
phy_ac.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
phy_ac.h
phy_common.c
phy_common.h wifi: b43: fix repeated words in comments 2022-07-18 15:07:27 +03:00
phy_g.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
phy_g.h
phy_ht.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
phy_ht.h
phy_lcn.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
phy_lcn.h
phy_lp.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
phy_lp.h
phy_n.c wifi: b43: use register definitions in nphy_op_software_rfkill 2026-03-13 07:11:32 +01:00
phy_n.h
pio.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pio.h
ppr.c
ppr.h
radio_2055.c
radio_2055.h
radio_2056.c
radio_2056.h
radio_2057.c b43: add channel info table for N-PHY r8 + radio 2057 r8 2026-06-10 10:27:55 +02:00
radio_2057.h
radio_2059.c
radio_2059.h
rfkill.c
rfkill.h
sdio.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sdio.h
sysfs.c wifi: b43: Convert sprintf/snprintf to sysfs_emit 2024-03-21 17:07:53 +02:00
sysfs.h
tables_lpphy.c wifi: b43: Constify struct lpphy_tx_gain_table_entry 2024-08-07 20:15:56 +03:00
tables_lpphy.h wifi: b43: Constify struct lpphy_tx_gain_table_entry 2024-08-07 20:15:56 +03:00
tables_nphy.c b43: add RF power offset for N-PHY r8 + radio 2057 r8 2026-06-10 10:27:56 +02:00
tables_nphy.h
tables_phy_ht.c
tables_phy_ht.h
tables_phy_lcn.c
tables_phy_lcn.h
tables.c
tables.h
wa.c
wa.h
xmit.c wifi: b43: enforce bounds check on firmware key index in b43_rx() 2026-04-27 12:39:57 +02:00
xmit.h