aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/rssileds
diff options
context:
space:
mode:
authorDaniel González Cabanelas <dgcbueu@gmail.com>2021-02-02 12:11:09 +0100
committerÁlvaro Fernández Rojas <noltari@gmail.com>2021-02-02 20:40:31 +0100
commita0e0e621cadbec02fddc1311d4a10b189b3c70f4 (patch)
tree3b2638c0c7288ec2a4ff9a73756cc165746f00d4 /package/network/utils/rssileds
parente23a90674e1b52a6eaa3d66a621f7ff612641243 (diff)
downloadupstream-a0e0e621cadbec02fddc1311d4a10b189b3c70f4.tar.gz
upstream-a0e0e621cadbec02fddc1311d4a10b189b3c70f4.tar.bz2
upstream-a0e0e621cadbec02fddc1311d4a10b189b3c70f4.zip
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> [amend commit description, rework patch to avoid using a new global variable and keep ssb sprom extraction code as close to ssb/pci.c as possible] Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'package/network/utils/rssileds')
0 files changed, 0 insertions, 0 deletions