Bug 247913 - Incorrect BCM module descriptions in if_bwi_pci.c
Summary: Incorrect BCM module descriptions in if_bwi_pci.c
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-wireless (Nobody)
Depends on:
Reported: 2020-07-11 15:27 UTC by Andrey P.
Modified: 2020-07-11 15:27 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Andrey P. 2020-07-11 15:27:54 UTC
In this structure:

static const struct bwi_dev {
        uint16_t        vid;
        uint16_t        did;
        const char      *desc;
} bwi_devices[] = {
        { PCI_VENDOR_BROADCOM, 0x4301,"Broadcom BCM4301 802.11b Wireless Lan" },
        { PCI_VENDOR_BROADCOM, 0x4307,"Broadcom BCM4307 802.11b Wireless Lan" },
        { PCI_VENDOR_BROADCOM, 0x4311,"Broadcom BCM4311 802.11b/g Wireless Lan" },
        { PCI_VENDOR_BROADCOM, 0x4312,"Broadcom BCM4312 802.11a/b/g Wireless Lan" },
        { PCI_VENDOR_BROADCOM, 0x4313,"Broadcom BCM4312 802.11a Wireless Lan" },
        { PCI_VENDOR_BROADCOM, 0x4320,"Broadcom BCM4306 802.11b/g Wireless Lan"},
        { PCI_VENDOR_BROADCOM, 0x4321,"Broadcom BCM4306 802.11a Wireless Lan"},
        { PCI_VENDOR_BROADCOM, 0x4325,"Broadcom BCM4306 802.11b/g Wireless Lan"},
        { PCI_VENDOR_BROADCOM, 0x4324,"Broadcom BCM4309 802.11a/b/g Wireless Lan" },
        { PCI_VENDOR_BROADCOM, 0x4318,"Broadcom BCM4318 802.11b/g Wireless Lan" },
        { PCI_VENDOR_BROADCOM, 0x4319,"Broadcom BCM4318 802.11a/b/g Wireless Lan" },
        { PCI_VENDOR_BROADCOM, 0x431a,"Broadcom BCM4318 802.11a Wireless Lan" },
        { 0, 0, NULL }

ID of BCM4312 is 0x4315, not 0x4312 and not 0x4313.

0x4312 is BCM4311.


I see inconsistency here with https://pci-ids.ucw.cz/v2.2/pci.ids and https://linux-hardware.org/?view=search&vendorid=14e4&deviceid=4315

How card descriptions in this structure are used?