Hi,

I got a new toy to play with recently which uses a bcm43341 wireless
chipset. This chipset is the same as the bcm43340 apart from an
additional nfc mode and can re-use the brcmfmac43340-sdio.bin firmware.
(I simply added a symbolic link from firmware supplied in the 
bwfm-firmware package)

In order to get the chipset recognized however I needed to make some
changes as attached

Index: sys/dev/ic/bwfmvar.h
=================================================================== RCS
file: /cvs/src/sys/dev/ic/bwfmvar.h,v retrieving revision 1.18
diff -u -p -u -r1.18 bwfmvar.h
--- sys/dev/ic/bwfmvar.h        6 Mar 2020 08:41:57 -0000       1.18
+++ sys/dev/ic/bwfmvar.h        11 Mar 2020 15:41:51 -0000
@@ -27,6 +27,7 @@
 #define BRCM_CC_4330_CHIP_ID           0x4330
 #define BRCM_CC_4334_CHIP_ID           0x4334
 #define BRCM_CC_43340_CHIP_ID          43340
+#define BRCM_CC_43341_CHIP_ID          43341
 #define BRCM_CC_43362_CHIP_ID          43362
 #define BRCM_CC_4335_CHIP_ID           0x4335
 #define BRCM_CC_4339_CHIP_ID           0x4339
Index: sys/dev/sdmmc/if_bwfm_sdio.c
===================================================================
RCS file: /cvs/src/sys/dev/sdmmc/if_bwfm_sdio.c,v
retrieving revision 1.33
diff -u -p -u -r1.33 if_bwfm_sdio.c
--- sys/dev/sdmmc/if_bwfm_sdio.c        7 Mar 2020 09:56:46
-0000   1.33 +++ sys/dev/sdmmc/if_bwfm_sdio.c   11 Mar 2020
15:41:53 -0000 @@ -374,6 +374,9 @@ bwfm_sdio_preinit(struct bwfm_softc
*bwf case BRCM_CC_43340_CHIP_ID:
                chip = "43340";
                break;
+       case BRCM_CC_43341_CHIP_ID:
+               chip = "43341";
+               break;
        case BRCM_CC_4335_CHIP_ID:
                if (bwfm->sc_chip.ch_chiprev < 2)
                        chip = "4335";

Reply via email to