How to install driver for broadcom 43142

I’m not sure what the problem is. May be start from scratch by deleting all your current copies of wl.ko and make sure the kernel version aren’t changing between your attempts to compile and install.

I don’t have the hardware to test with but both of these methods worked for me:

Manual install:

$ git clone https://github.com/antoineco/broadcom-wl.git
$ cd broadcom-wl/
$ make
$ sudo make install
$ depmod -A
$ sudo modprobe wl
$ modinfo wl
filename:       /lib/modules/5.2.15-834.native/kernel/drivers/net/wireless/wl.ko
license:        MIXED/Proprietary
alias:          pci:v*d*sv*sd*bc02sc80i*
depends:        cfg80211
retpoline:      Y
name:           wl
vermagic:       5.2.15-834.native SMP mod_unload
parm:           passivemode:int
parm:           wl_txq_thresh:int
parm:           oneonly:int
parm:           piomode:int
parm:           instance_base:int
parm:           nompc:int
parm:           intf_name:string

With DKMS:

$ git clone https://github.com/antoineco/broadcom-wl.git
$ sudo cp -R broadcom-wl/ /usr/src/broadcom-wl-6.30.223.271
$ sudo dkms install -m broadcom-wl -v 6.30.223.271
$ modinfo wl
filename:       /lib/modules/5.2.15-834.native/kernel/drivers/net/wireless/wl.ko
license:        MIXED/Proprietary
alias:          pci:v*d*sv*sd*bc02sc80i*
depends:        cfg80211
retpoline:      Y
name:           wl
vermagic:       5.2.15-834.native SMP mod_unload
parm:           passivemode:int
parm:           wl_txq_thresh:int
parm:           oneonly:int
parm:           piomode:int
parm:           instance_base:int
parm:           nompc:int
parm:           intf_name:string