Auto connect to wifi on MacBook 2007

I have gone through some of the documentation on getting the WiFi to work on a 2007 MacBook with a Broadcom BCM4321. The WiFi now works after running:

sudo apt install firmware-b43-installer
sudo apt install linux-firmware

However, I have to run sudo modprobe b43 after each boot manually. Sometimes I have to run both:

sudo modprobe -r b43
sudo modprobe b43    

Is there any way to create a setting that will let me avoid doing this manually each time?


Solution 1:

I have added b43 to /etc/modules as suggested by Chili555, but still wasn't able to connect. Then I found a question from fhgshfdg on Ubuntu forums about finding b43 blacklisted in broadcom-sta-common.conf. Once I added the # to the line blacklisting b43 my wifi automatically connected on reboot.

Thank you to all who helped with this long search.