0

Ubuntu 23.04 hard freezes with 1-2 min of using wifi. I tried the proprietary driver broadcom-sta-dkms suggested by ubuntu but it didn't solve the issue. I'd had the exact same problem with any distribution with kernel 6 (like Fedora). Any thoughts on how to solve the problem?

Output of lspci -nn | grep Broadcom

05:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01)
  • broadcom-sta-dkms is not correct for your device. Please check here: https://askubuntu.com/questions/55868/installing-broadcom-wireless-drivers/60395#60395 Welcome to Ask Ubuntu. – chili555 Apr 20 '23 at 13:47
  • Thank you for your response. I did the steps as stated. installed both BCM43 and linux firmwware on a fresh install of ubuntu 23.04. But the issue still persists. Somtimes even on the ubuntu loading logo the OS freezes. the only way to use the OS is to disable Wifi card at the moment. Any other hints would be appreciated. – Arash Jahdkaran Apr 20 '23 at 20:23
  • Is b43 trying to load? lsmod | grep b43 Can you post the message log? http://paste.ubuntu.com sudo dmesg – chili555 Apr 20 '23 at 20:49
  • The output of lsmod : link

    And the dmesg: link

    – Arash Jahdkaran Apr 21 '23 at 04:07
  • As soon as the kernel got updated to version 6 on fedora the problem arised. Came to ubuntu, again just as I updated to 23.04 which has kernel 6.2 I see the issue again. Tried clean installation without driver and both b43 and proprietary driver. Also the proprietary which ubuntu suggests seems to have problems compiling I found these patches link on arch for Linux 6.0 and 6.1 but nothing for 6.2. Doesn't it seem to be kernel problem rather than driver? – Arash Jahdkaran Apr 21 '23 at 10:54

2 Answers2

0

I believe that the best working driver for your 14e4:4727 Broadcom is bcmwl-kernel-source, instead of brcmsmac or b43 and firmware. Let's install it and see if there is any improvement:

sudo apt update
sudo apt install bcmwl-kernel-source

Reboot and tell us if there is any improvement.

EDIT: You have shown that bcmwl-kernel-source does not work. Let's try brcmsmac:

sudo -i
apt purge bcmwl-kernel-source
echo "blacklist b43" >>  /etc/modprobe.d/blacklist.conf
echo "blacklist ssb" >>  /etc/modprobe.d/blacklist.conf
exit

Reboot. Is there any improvement?

chili555
  • 60,188
  • Unfortunately that didn't help. Found this bug on ubuntu. But the solution doesn't affect current lunar kernel version. After installing the driver, the wifi is not detected by Ubuntu. – Arash Jahdkaran Apr 22 '23 at 19:50
  • I've decided to switch to lts. But before that if you think I can report the bug somewhere or you have any other suggestions. I would appreciate your guidance. – Arash Jahdkaran Apr 22 '23 at 19:59
  • Please see my suggestion in an edit above in a few moments. – chili555 Apr 22 '23 at 20:16
  • Unfortunately, No improvement. Unlike the bcmwl driver now the wifi is detected but system freezes. the output of lsmod: link and the output of dmesg: link – Arash Jahdkaran Apr 22 '23 at 20:49
  • From your dmesg paste, I don't see anything with regard to the wireless that throws an error or even a warning. I see numerous ACPI errors, an ACPI BIOS Error and this interesting message: unchecked MSR access error: WRMSR to 0x19c Please see the bug report here: https://bugs.launchpad.net/ubuntu/+source/linux-signed/+bug/1959721 I doubt that the Broadcom wireless has anything at all to do with the freezes. – chili555 Apr 22 '23 at 22:23
0

Following the clues I found this bug reported to kernel. The reporter had the same issue as me which is recognized as a kernel regression problem.

Solution has already been suggested by arch developers to kernel.

As stated in the discussion:

There are some codepaths that do not initialize rx->link_sta properly. This causes a crash in places which assume that rx->link_sta is valid if rx->sta is valid. One known instance is triggered by __ieee80211_rx_h_amsdu being called from fast-rx. It results in a crash

I couldn't verify this on ubuntu since it has kernel 6.2 but the patch works on mainline 6.1 kernel.

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center. – Community Apr 29 '23 at 13:57