I have been having WiFi trouble for months now, and I've tried all manner of solutions with no change.
Hardware: Mid 2012 MacBook Pro unibody, 16gb RAM and 500gb Samsung SSD
OS: Kali Linux 2021.2 with weekly updates to all software. Running Live with Persistence from a USB drive.
Driver: Broadcom BCM 4331
Problem: Linux will connect to my iPhone hotspot with no problems and no connection lag, but when connecting to my university's WiFi or home WiFi, it either will not make the connection at all, or establish a connection for about half an hour, then stop working. Webpages pull up a "connection timed out" or "could not reach the server" errors. Currently I have a decent connection to my university's WiFi, but about a half-hour prior, I could not connect at all.
Attempted:
- uninstalling and reinstalling NetworkManager
- Manually filling out WiFi router details in the nm-applet
- Uninstalling and reinstalling OS
- Adding
wifi.scan-rand-mac-address=noto /etc/NetworkManager/NetworkManager.conf - addressing router directly, both with the default address
192.168.1.1and the gateway address that appears after runningroutein the terminal -Edited /etc/network/interfaces and addedwlan0 - Numerous NetworkManager restarts.
- when a connection is established, even if no webpages are loading, the command
pingstill shows that there is a connection with no packet loss - set DNS servers to
8.8.8.8and8.8.4.4in the IPv4 settings in NetworkManager - module bcma is listed when running command
sudo lsmod, used by b43 which is my driver - added
deb http://http.deb/debian.org/debian bullseye-backports main contrib non-freeanddeb http://us.debian.org/debian bullseye main non-freeto /etc/apt/sources.list, updated and upgraded with these sources - manually installed
linux-headers-amd64,linux-image-amd64, andlinux-kbuild-5.10 - ran
apt install broadcom-sta-dkmsfollowed bymodprobe-r b43 b43legacy ssb brcmsmac bcmaandmodprobe wl, after reboot, WiFi seems to be working again
Various other attempts were made to fix the problem but I can't remember what all I tried. At the moment, all edits to /etc/network and /etc/NetworkManager files have been removed, all NetworkManager settings are the default.