diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2018-01-10 02:15:23 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2018-01-10 02:15:23 +0000 |
commit | 67f02cf2ba9e928b50d6503d979161dca9206d3b (patch) | |
tree | 14ff49f8f9e2df5458aaedd9e2ab21ccf61d2659 | |
parent | 91a94384b9227ebc6b9f0d72ae92e8160911d27a (diff) |
Add firmware names for the two revisions of the Broadcom 4350 as seen
on a MacBook 12-inch (2017).
Tested by and with jcs@
-rw-r--r-- | sys/dev/pci/if_bwfm_pci.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/dev/pci/if_bwfm_pci.c b/sys/dev/pci/if_bwfm_pci.c index 0c3d527cba2..5672b9a7546 100644 --- a/sys/dev/pci/if_bwfm_pci.c +++ b/sys/dev/pci/if_bwfm_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bwfm_pci.c,v 1.13 2018/01/10 02:07:11 patrick Exp $ */ +/* $OpenBSD: if_bwfm_pci.c,v 1.14 2018/01/10 02:15:22 patrick Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation * Copyright (c) 2017 Patrick Wildt <patrick@blueri.se> @@ -388,15 +388,18 @@ bwfm_pci_attachhook(struct device *self) switch (bwfm->sc_chip.ch_chip) { + case BRCM_CC_4350_CHIP_ID: + if (bwfm->sc_chip.ch_chiprev > 7) + name = "brcmfmac4350-pcie.bin"; + else + name = "brcmfmac4350c2-pcie.bin"; + break; case BRCM_CC_43602_CHIP_ID: name = "brcmfmac43602-pcie.bin"; break; default: - break; - } - - if (name == NULL) { - printf("%s: unknown firmware\n", DEVNAME(sc)); + printf("%s: unknown firmware for chip %s\n", + DEVNAME(sc), bwfm->sc_chip.ch_name); return; } |