Unable to connect to WiFi Network with Broadcom BCM4313 802.11bgn Wireless Network Adapter

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
leandrocaplan
Level 1
Level 1
Posts: 20
Joined: Tue Jan 17, 2023 3:40 pm

Unable to connect to WiFi Network with Broadcom BCM4313 802.11bgn Wireless Network Adapter

Post by leandrocaplan »

Hi there!

The issue is this one:

I've temporally switched the disk where I have my Linux Mint 21.3 installation to another computer, while the other one is being repaired. The OS booted fine on this computer, except for the Wi-Fi connection.

I checked the hardware on this new computer, and I saw it has a 'BCM4313 802.11bgn Wireless Network Adapter' card. At first, I could properly see the list of available WiFi connections, but I was unable to connect to anyone of those. So, after trying to install the correspondent driver by following the automatic steps shown by mintReport, I couldn't even see that list anymore.

I've been reading some posts related to these issue while attempting to solve it.
These were the main ones:
I've tried a lot of stuff indicated by them. So, the last command I've run are these ones:

Code: Select all

sudo apt update
sudo apt purge bcmwl-kernel-source broadcom-sta-common broadcom-sta-source broadcom-sta-dkms
sudo apt install broadcom-sta-dkms
sudo modprobe -r b43 ssb wl brcmfmac bcma
sudo modprobe wl
sudo apt install firmware-b43-installer
sudo modprobe b43
sudo rfkill unblock all
sudo modprobe -r b43 ssb wl brcmfmac bcma
sudo modprobe b43
sudo modprobe -r b43 ssb wl brcmfmac bcma
sudo modprobe wl
Despite I've tried lots of things, I'm still being able to see the avaliable connections list, but unable to connect to anyone.

Here's the output I'm getting from some commands:

Code: Select all

leandro@leandro-Lenovo-B50-10:~$ lspci -nnkv
00:00.0 Host bridge [0600]: Intel Corporation 3rd Gen Core processor DRAM Controller [8086:0154] (rev 09)
	Subsystem: Lenovo 3rd Gen Core processor DRAM Controller [17aa:3977]
	Flags: bus master, fast devsel, latency 0
	Capabilities: <access denied>
	Kernel driver in use: ivb_uncore

00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0156] (rev 09) (prog-if 00 [VGA controller])
	Subsystem: Lenovo 3rd Gen Core processor Graphics Controller [17aa:3977]
	Flags: bus master, fast devsel, latency 0, IRQ 26
	Memory at e0000000 (64-bit, non-prefetchable) [size=4M]
	Memory at d0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 3000 [size=64]
	Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: i915
	Kernel modules: i915

00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04) (prog-if 30 [XHCI])
	Subsystem: Lenovo 7 Series/C210 Series Chipset Family USB xHCI Host Controller [17aa:3977]
	Flags: bus master, medium devsel, latency 0, IRQ 24
	Memory at e0600000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci

00:16.0 Communication controller [0780]: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 [8086:1e3a] (rev 04)
	Subsystem: Lenovo 7 Series/C216 Chipset Family MEI Controller [17aa:3977]
	Flags: bus master, fast devsel, latency 0, IRQ 27
	Memory at e0614000 (64-bit, non-prefetchable) [size=16]
	Capabilities: <access denied>
	Kernel driver in use: mei_me
	Kernel modules: mei_me

00:1a.0 USB controller [0c03]: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 [8086:1e2d] (rev 04) (prog-if 20 [EHCI])
	Subsystem: Lenovo 7 Series/C216 Chipset Family USB Enhanced Host Controller [17aa:3977]
	Flags: bus master, medium devsel, latency 0, IRQ 16
	Memory at e0619000 (32-bit, non-prefetchable) [size=1K]
	Capabilities: <access denied>
	Kernel driver in use: ehci-pci

00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)
	Subsystem: Lenovo 7 Series/C216 Chipset Family High Definition Audio Controller [17aa:3977]
	Flags: bus master, fast devsel, latency 0, IRQ 28
	Memory at e0610000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

00:1c.0 PCI bridge [0604]: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 [8086:1e10] (rev c4) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 17
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 00002000-00002fff [size=4K]
	Memory behind bridge: e0500000-e05fffff [size=1M]
	Prefetchable memory behind bridge: [disabled]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1c.1 PCI bridge [0604]: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 [8086:1e12] (rev c4) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: [disabled]
	Memory behind bridge: e0400000-e04fffff [size=1M]
	Prefetchable memory behind bridge: [disabled]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:1d.0 USB controller [0c03]: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 [8086:1e26] (rev 04) (prog-if 20 [EHCI])
	Subsystem: Lenovo 7 Series/C216 Chipset Family USB Enhanced Host Controller [17aa:3977]
	Flags: bus master, medium devsel, latency 0, IRQ 23
	Memory at e0618000 (32-bit, non-prefetchable) [size=1K]
	Capabilities: <access denied>
	Kernel driver in use: ehci-pci

00:1f.0 ISA bridge [0601]: Intel Corporation HM76 Express Chipset LPC Controller [8086:1e59] (rev 04)
	Subsystem: Lenovo HM76 Express Chipset LPC Controller [17aa:3977]
	Flags: bus master, medium devsel, latency 0
	Capabilities: <access denied>
	Kernel driver in use: lpc_ich
	Kernel modules: lpc_ich

00:1f.2 SATA controller [0106]: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] [8086:1e03] (rev 04) (prog-if 01 [AHCI 1.0])
	Subsystem: Lenovo 7 Series Chipset Family 6-port SATA Controller [AHCI mode] [17aa:3977]
	Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 25
	I/O ports at 3088 [size=8]
	I/O ports at 3094 [size=4]
	I/O ports at 3080 [size=8]
	I/O ports at 3090 [size=4]
	I/O ports at 3060 [size=32]
	Memory at e0617000 (32-bit, non-prefetchable) [size=2K]
	Capabilities: <access denied>
	Kernel driver in use: ahci
	Kernel modules: ahci

00:1f.3 SMBus [0c05]: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller [8086:1e22] (rev 04)
	Subsystem: Lenovo 7 Series/C216 Chipset Family SMBus Controller [17aa:3977]
	Flags: medium devsel, IRQ 19
	Memory at e0615000 (64-bit, non-prefetchable) [size=256]
	I/O ports at 3040 [size=32]
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801

01:00.0 Ethernet controller [0200]: Qualcomm Atheros AR8162 Fast Ethernet [1969:1090] (rev 10)
	Subsystem: Lenovo AR8162 Fast Ethernet [17aa:3979]
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Memory at e0500000 (64-bit, non-prefetchable) [size=256K]
	I/O ports at 2000 [size=128]
	Capabilities: <access denied>
	Kernel driver in use: alx
	Kernel modules: alx

02:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01)
	Subsystem: Broadcom Inc. and subsidiaries BCM4313 802.11bgn Wireless Network Adapter [14e4:051b]
	Flags: bus master, fast devsel, latency 0, IRQ 17
	Memory at e0400000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: wl
	Kernel modules: bcma, wl

Code: Select all

leandro@leandro-Lenovo-B50-10:~$ inxi -Nn
Network:
  Device-1: Qualcomm Atheros AR8162 Fast Ethernet driver: alx
  IF: enp1s0 state: down mac: c4:da:26:04:b3:dc
  Device-2: Broadcom BCM4313 802.11bgn Wireless Network Adapter driver: wl
  IF: wlp2s0 state: dormant mac: bc:85:56:93:11:a0
  IF-ID-1: docker0 state: down mac: 02:42:a5:95:f4:b9
  IF-ID-2: enxce1dc62327c0 state: unknown speed: -1 duplex: half
    mac: ce:1d:c6:23:27:c0

I've temporally solved the problem by using a connection shared by USB from the cell phone, by I'm still trying to be able to connect to Wi-Fi directly from the computer.

Any idea of what's going on? Any more information needed?

Thank's a lot!
Leandro

EDIT: I forgot to say that I have different kernel versions installed, and I've tried different possible solutions on each one of those.
EDIT 2: Added other important post I've consulted to the list.
Hawaiihemd
Level 4
Level 4
Posts: 440
Joined: Fri Sep 25, 2020 12:42 pm

Re: Unable to connect to WiFi Network with Broadcom BCM4313 802.11bgn Wireless Network Adapter

Post by Hawaiihemd »

Do a sudo apt install firmware-b43-installer and follow my post here:
viewtopic.php?p=2318261#p2318261.
leandrocaplan
Level 1
Level 1
Posts: 20
Joined: Tue Jan 17, 2023 3:40 pm

Re: Unable to connect to WiFi Network with Broadcom BCM4313 802.11bgn Wireless Network Adapter

Post by leandrocaplan »

Hawaiihemd wrote: Mon Jun 10, 2024 2:45 am Do a sudo apt install firmware-b43-installer and follow my post here:
viewtopic.php?p=2318261#p2318261.
I'd previously ran sudo apt install firmware-b43-installer
So now, I've edited these files like this:

'/etc/modprobe.d/broadcom-sta-dkms.conf':

Code: Select all

# wl module from Broadcom conflicts with the following modules:
#blacklist b43
#blacklist b43legacy
blacklist b44
blacklist bcma
#blacklist brcm80211
#blacklist brcmsmac
#blacklist ssb
'/etc/modprobe.d/blacklist.conf':

Code: Select all

# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.

# evbug is a debug tool that should be loaded explicitly
blacklist evbug

# these drivers are very simple, the HID drivers are usually preferred
blacklist usbmouse
blacklist usbkbd

# replaced by e100
blacklist eepro100

# replaced by tulip
blacklist de4x5

# causes no end of confusion by creating unexpected network interfaces
blacklist eth1394

# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
# hardware on its own (Ubuntu bug #2011, #6810)
blacklist snd_intel8x0m

# Conflicts with dvb driver (which is better for handling this device)
blacklist snd_aw2

# replaced by p54pci
blacklist prism54

# replaced by b43 and ssb.
blacklist bcm43xx

# most apps now use garmin usb driver directly (Ubuntu: #114565)
blacklist garmin_gps

# replaced by asus-laptop (Ubuntu: #184721)
blacklist asus_acpi

# low-quality, just noise when being used for sound playback, causes
# hangs at desktop session start (Ubuntu: #246969)
blacklist snd_pcsp

# ugly and loud noise, getting on everyone's nerves; this should be done by a
# nice pulseaudio bing (Ubuntu: #77010)
blacklist pcspkr

# EDAC driver for amd76x clashes with the agp driver preventing the aperture
# from being initialised (Ubuntu: #297750). Blacklist so that the driver
# continues to build and is installable for the few cases where its
# really needed.
blacklist amd76x_edac
Then rebooted, and tried this at the terminal:

Code: Select all

leandro@leandro-Lenovo-B50-10:~$ sudo modprobe -r b43 ssb wl brcmfmac  bcrm80211 bcrmsmac
modprobe: FATAL: Module bcrm80211 not found.
leandro@leandro-Lenovo-B50-10:~$ sudo modprobe -r b43 ssb wl brcmfmac bcma
modprobe: FATAL: Module bcma is in use.
leandro@leandro-Lenovo-B50-10:~$ sudo modprobe -r b43 ssb wl brcmfmac
leandro@leandro-Lenovo-B50-10:~$ sudo modprobe  b43
leandro@leandro-Lenovo-B50-10:~$ sudo modprobe ssb
Still getting the same result. There might be some more information needed?
I'm not sure of where's located the main modprobe file, since it's the first time I'm dealing with such tool.
Hawaiihemd
Level 4
Level 4
Posts: 440
Joined: Fri Sep 25, 2020 12:42 pm

Re: Unable to connect to WiFi Network with Broadcom BCM4313 802.11bgn Wireless Network Adapter

Post by Hawaiihemd »

I am not at my PC right now and therefore cannot check, but I feel like you commented out too much stuff in those files.

Also note I did not change the blacklist.conf file!
leandrocaplan
Level 1
Level 1
Posts: 20
Joined: Tue Jan 17, 2023 3:40 pm

Re: Unable to connect to WiFi Network with Broadcom BCM4313 802.11bgn Wireless Network Adapter

Post by leandrocaplan »

Hawaiihemd wrote: Mon Jun 10, 2024 4:15 am I am not at my PC right now and therefore cannot check, but I feel like you commented out too much stuff in those files.

Also note I did not change the blacklist.conf file!
I've also didn't, I'm just showing here the resulting content of both files, edited or not. Also, at first I've tried just commenting out just the blackilst brcm80211 and the blackilst brcmsmac lines and rebooting, with an unsuccessful result. So after that, I kept on trying and commented out those other lines to see the results, which were just the same.

I guess I should keep on trying stuff and reading documentation, since I'm pretty newbie in this kind of things and I should learn quite a lot.
Thanks anyway for your contribution!
Hawaiihemd
Level 4
Level 4
Posts: 440
Joined: Fri Sep 25, 2020 12:42 pm

Re: Unable to connect to WiFi Network with Broadcom BCM4313 802.11bgn Wireless Network Adapter

Post by Hawaiihemd »

Again, that is what I mean...

When testing such things you can only ever change one thing and check the effect.

You just kept removing more and more blacklisting adding(!) to the one you removed earlier.
It might be the reason why it does not work.

So I would restore those files to their original state and remove only the blacklisting of b43.

Otherwise I am out of ideas.
leandrocaplan
Level 1
Level 1
Posts: 20
Joined: Tue Jan 17, 2023 3:40 pm

Re: Unable to connect to WiFi Network with Broadcom BCM4313 802.11bgn Wireless Network Adapter

Post by leandrocaplan »

I tried some things that, although they didn't work, helped me gain a slightly better understanding of what I'm trying to do, and they might help to find a solution more quickly.

I've done this at the terminal:

Code: Select all

leandro@leandro-Lenovo-B50-10:~$ sudo modprobe -r b43 ssb wl brcmfmac bcma
leandro@leandro-Lenovo-B50-10:~$ sudo modprobe bcrm80211
modprobe: FATAL: Module bcrm80211 not found in directory /lib/modules/6.6.5-060605-generic
By seeing that output, I noticed that every kernel module that might be loaded at startup, is placed in a subdirectory of /lib/modules/(kernel_version).
So then, by exploring that directory, I've found the folder on which the module that is wanted to be loaded is placed:
broadcom.png
After that, I've edited my '/etc/modprobe.d/broadcom-sta-dkms.conf' like this:

Code: Select all

# wl module from Broadcom conflicts with the following modules:
blacklist b43
blacklist b43legacy
blacklist b44
blacklist bcma
#blacklist brcm80211
blacklist brcmsmac
#blacklist ssb
Then I've rebooted, but I'm getting the same output at the console. I'm not understanding why the system doesn't find the module despite that such folder exist within that mentioned subdirectory, and it isn't blacklisted within a modprobe config file.
I'm also wondering where the 'wl' module folder is placed, and what it is used for. It should be loaded or not?

All this has something to do with this issue? Does it help to get a better comprehension of whats going on?
leandrocaplan
Level 1
Level 1
Posts: 20
Joined: Tue Jan 17, 2023 3:40 pm

Re: Unable to connect to WiFi Network with Broadcom BCM4313 802.11bgn Wireless Network Adapter

Post by leandrocaplan »

Hawaiihemd wrote: Mon Jun 10, 2024 5:32 am Again, that is what I mean...

When testing such things you can only ever change one thing and check the effect.

You just kept removing more and more blacklisting adding(!) to the one you removed earlier.
It might be the reason why it does not work.

So I would restore those files to their original state and remove only the blacklisting of b43.

Otherwise I am out of ideas.
I've just read this after writing and submitted my last post, so I'll try to do that. I wonder if what I've posted may help or not.
Thank you!!
leandrocaplan
Level 1
Level 1
Posts: 20
Joined: Tue Jan 17, 2023 3:40 pm

Re: Unable to connect to WiFi Network with Broadcom BCM4313 802.11bgn Wireless Network Adapter

Post by leandrocaplan »

I've tried this:

Code: Select all

sudo apt purge bcmwl-kernel-source broadcom-sta-common broadcom-sta-source broadcom-sta-dkms
sudo apt purge firmware-b43-installer
sudo apt install firmware-b43-installer
After that, '/etc/modprobe.d/broadcom-sta-dkms.conf' just disappeared. I've rebooted, with any good result.
Then I've followed just the mintReport error messages like this:
mintreport.png
bcmwl.png
A /etc/modprobe.d/blacklist-bcm43.conf file was then generated, almost with same content of that other file:

Code: Select all

# Warning: This file is autogenerated by bcmwl. All changes to this file will be lost.
blacklist b43
blacklist b43legacy
blacklist ssb
blacklist bcm43xx
blacklist brcm80211
blacklist brcmfmac
blacklist brcmsmac
blacklist bcma
I rebooted without touching that new file, and then after blacklisting again 'b43', but nothing have changed.

I find quite odd that the Network Manager does recognize the wireless connections, but it's not able to actually connect successfully, staying forever configuring like this, even after entering the password several times:
network.jpg
I'm wondering if the network card is indeed working or it's physically broken. I don't know if there's a way to check this. In that last case, I should buy another card, or just wait until the other computer is repaired (its monitor hinges must be replaced, and the spare parts are hard to obtain here in Argentina).
Hawaiihemd
Level 4
Level 4
Posts: 440
Joined: Fri Sep 25, 2020 12:42 pm

Re: Unable to connect to WiFi Network with Broadcom BCM4313 802.11bgn Wireless Network Adapter

Post by Hawaiihemd »

I think a hardware failure can not be dismissed at this point.

But that aside, you just went in circles. You are now trying to use the bcmwl-kernel-source again which is known to not work properly.

If I were you I would run the following again:

Code: Select all

sudo apt purge bcmwl-kernel-source broadcom-sta-common broadcom-sta-source broadcom-sta-dkms
sudo apt purge firmware-b43-installer
sudo apt install firmware-b43-installer
Then reboot, edit the /etc/modprobe.d/broadcom-sta-dkms.conf to say #blacklist b43 and reboot again.
Post Reply

Return to “Networking”