Macbook Pro 2011 - Wifi dropping randomly

I have been running Endeavouros on my Macbook Pro 2011 for a couple of years now. It has been a great solution for breathing some new life in this machine.

I keep having this problem with my Wifi dropping randomly though. I have to reboot the machine, in order for the Wifi to be back up.

Sometimes the wifi will drop randomly, but there also seems to be a pattern of it happening when it’s under heavier load. Like when I am updating, I have been resorting to doing it via cable lately, for the wifi not to drop on me mid update.
Also the wifi seems to drop, when I wake up the machine, after a “hibernation”.

I suspect it might be the Wifi drivers, or maybe a power saving issue?

I am still a newbie at linux, so bear with me.

This is my inxi -FAZ --no-host output:

System:
  Kernel: 6.11.7-arch1-1 arch: x86_64 bits: 64
  Desktop: Xfce v: 4.18.1 Distro: EndeavourOS
Machine:
  Type: Laptop System: Apple product: MacBookPro8,1 v: 1.0
    serial: <superuser required>
  Mobo: Apple model: Mac-94245B3640C91C81 v: MacBookPro8,1
    serial: <superuser required> UEFI: Apple v: MBP81.88Z.0050.B00.1804101331
    date: 04/10/18
Battery:
  ID-1: BAT0 charge: 0.7 Wh (100.0%) condition: 0.7/58.8 Wh (1.2%)
CPU:
  Info: dual core model: Intel Core i5-2415M bits: 64 type: MT MCP cache:
    L2: 512 KiB
  Speed (MHz): avg: 831 min/max: 800/2900 cores: 1: 831 2: 831 3: 831 4: 831
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
    driver: i915 v: kernel
  Device-2: Apple FaceTime HD Camera driver: uvcvideo type: USB
  Display: x11 server: X.Org v: 21.1.14 driver: X: loaded: intel
    unloaded: modesetting dri: i965 gpu: i915 resolution: 1280x800~60Hz
  API: EGL v: 1.5 drivers: crocus,swrast
    platforms: gbm,x11,surfaceless,device
  API: OpenGL v: 4.5 compat-v: 3.3 vendor: intel mesa v: 24.2.6-arch1.1
    renderer: Mesa Intel HD Graphics 3000 (SNB GT2)
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio
    driver: snd_hda_intel
  API: ALSA v: k6.11.7-arch1-1 status: kernel-api
  Server-1: PipeWire v: 1.2.6 status: active
Network:
  Device-1: Broadcom NetXtreme BCM57765 Gigabit Ethernet PCIe driver: tg3
  IF: enp2s0f0 state: down mac: c8:2a:14:2e:d8:96
  Device-2: Broadcom BCM4331 802.11a/b/g/n driver: wl
  IF: wlan0 state: up mac: e4:ce:8f:0f:9e:44
Bluetooth:
  Device-1: Apple Bluetooth Host Controller driver: btusb type: USB
  Report: btmgmt ID: hci0 state: up address: E4:CE:8F:0F:9E:45 bt-v: 2.1
Drives:
  Local Storage: total: 465.76 GiB used: 345.86 GiB (74.3%)
  ID-1: /dev/sda vendor: Western Digital model: WD Blue SA510 2.5 500GB
    size: 465.76 GiB
Partition:
  ID-1: / size: 456.41 GiB used: 345.76 GiB (75.8%) fs: ext4 dev: /dev/sda2
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 75.0 C mobo: 0.0 C
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 16 GiB available: 15.53 GiB used: 2.2 GiB (14.1%)
  Processes: 204 Uptime: 40m Shell: Bash inxi: 3.3.36

Hope some of you gurus are able to help me diagnose it, or point me in the direction of how to solve this. Much appreciated! :pray:

If using NetworkManager then you could try this.

Randomization during Wi-Fi scanning is enabled by default, but it may be disabled by adding the following lines to /etc/NetworkManager/NetworkManager.conf or a dedicated configuration file under /etc/NetworkManager/conf.d:

/etc/NetworkManager/conf.d/wifi_rand_mac.conf

[device] wifi.scan-rand-mac-address=no

Edit: See the link

https://wiki.archlinux.org/title/NetworkManager#Configuring_MAC_address_randomization

Hmm I tried both adding [device] wifi.scan-rand-mac-address=no to the NetworkManager.conf and via a dedicated conf file in the etc/NetworkManager/conf.d directory, by using sudo nano.

Both resulting in the wifi not even connecting when rebooting.

Are you using the package broadcom-wl or broadcom-wl-dkms?

To be honest I wasn’t sure.

I ran pacman -Qs broadcom-wl and got the following output:

local/broadcom-wl-dkms 6.30.223.271-37
    Broadcom 802.11 Linux STA wireless driver

So I assume I am using broadcom-wl-dkms, is that right?

As said, I am still a noob, so I apologise for my ignorance.
I very much appreciate you trying to help me out though!