openwrt/target/linux/brcm63xx
Daniel González Cabanelas cf5e5204d9 bcm63xx: sprom: override the PCI device ID
The PCI device ID detected by the wifi drivers on devices using a fallback
SPROM is wrong. Currently the chipnum is used for this parameter.

Most SSB based Broadcom wifi chips are 2.4 and 5GHz capable. But on
devices without a physical SPROM, the only one way to detect if the device
suports both bands or only the 5GHz band, is by reading the device ID from
the fallback SPROM.

In some devices, this may lead to a non working wifi on a 5GHz-only card,
or in the best case a working 2.4GHz-only in a dual band wifi card.

The offset for the deviceid in SSB SPROMs is 0x0008, whereas in BCMA is
0x0060. This is true for any SPROM version.

Override the PCI device ID with the one defined at the fallback SPROM, to
detect the correct wifi card model and allow using the 5GHz band if
supported.

The patch has been tested with the following wifi radios:

BCM43222: b43: both 2.4/5GHz working
          brcm-wl: both 2.4/5GHz working

BCM43225: b43: 2.4GHz, working
	 brcmsmac: working
	 brcm-wl: it lacks support

BCM43217: b43: 2.4GHz, working
	 brcmsmac: it lacks support
	 brcm-wl: it lacks support

Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

Backported from a0e0e621ca
2021-02-07 19:08:08 +01:00
..
base-files brcm63xx: VH4032N: fix the power led and the wlan button 2019-01-27 11:52:24 +01:00
dts bcm63xx: R5010UNv2: fix flash partitions for 16MB flash 2021-02-04 22:19:13 +01:00
generic brcm63xx: move generic profiles to top dir and remove smp profiles 2014-08-18 21:50:37 +00:00
image build: move xor-image into image-commands 2018-12-24 19:18:07 +01:00
patches-4.14 bcm63xx: sprom: override the PCI device ID 2021-02-07 19:08:08 +01:00
profiles brcm63xx: drop legacy profile for SR102 2018-12-11 13:11:10 +01:00
smp brcm63xx: refresh smp config 2017-06-30 12:13:08 +02:00
config-4.14 bcm63xx: refresh kernel config 2020-05-18 09:51:18 +02:00
Makefile brcm63xx: switch to 4.14 2018-08-02 08:49:18 +02:00
modules.mk kernel: remove kernel module checks/dependencies for 3.14 2015-04-11 10:43:46 +00:00