Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broadcom STA driver scan always returns 0 wireless networks #39151

Open
colehaus opened this issue Apr 19, 2018 · 4 comments
Open

Broadcom STA driver scan always returns 0 wireless networks #39151

colehaus opened this issue Apr 19, 2018 · 4 comments
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md

Comments

@colehaus
Copy link

Issue description

My BCM4359 wireless card worked fine on NixOS 17.09. When I upgraded to NixOS 18.03, it stopped working. In particular, the way it failed to work is that despite the device appearing healthy, no rfkill blocks etc, scans (via wicd, iw and iwlist) always returned zero wireless networks.

More interesting is that reverting to the previous working configuration by selecting an old entry in the GRUB boot menu did not fix the problem.

After much fiddling, the only workaround I could find was to abandon the broadcom STA drivers and use the b43 drivers. That entailed setting networking.enableB43Firmware = true in /etc/nixos/configuration.nix and adding "b43" as a kernel module in /etc/nixos/hardware-configuration.nix.

Logs and other data

dmesg:

[  649.410190] ERROR @wl_notify_scan_status : 
[  649.410192] wlp2s0 Scan_results error (-22)
[ 1504.890387] ERROR @wl_notify_scan_status : 
[ 1504.890389] wlp2s0 Scan_results error (-22)
[ 1504.895270] ERROR @wl_cfg80211_detach : 
[ 1504.895273] NULL ndev->ieee80211ptr, unable to deref wl
 1525.370345] ERROR @wl_notify_scan_status : 
[ 1525.370348] wlp2s0 Scan_results error (-22)
[ 1530.375852] ERROR @wl_cfg80211_scan : 
[ 1530.375855] WLC_SCAN error (-22)
[ 1531.377117] ERROR @wl_cfg80211_scan : 
[ 1531.377121] WLC_SCAN error (-22)
[ 1532.378500] ERROR @wl_cfg80211_scan : 
[ 1532.378503] WLC_SCAN error (-22)

(Unfortunately, I can't guarantee that those are "clean" errors. They may have occurred when I was fiddling with other kernel modules via modprobe.)

uname -r:

4.14.34

modinfo wl

filename:       /run/current-system/kernel-modules/lib/modules/4.14.34/kernel/net/wireless/wl.ko
license:        MIXED/Proprietary
license:        MIXED/Proprietary
alias:          pci:v*d*sv*sd*bc02sc80i*
depends:        cfg80211
retpoline:      Y
name:           wl
vermagic:       4.14.34 SMP mod_unload 
parm:           passivemode:int
parm:           wl_txq_thresh:int
parm:           oneonly:int
parm:           piomode:int
parm:           instance_base:int
parm:           nompc:int
parm:           intf_name:string

nix-info -m:

 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.34, NixOS, 18.03.132021.c0c5571ec1a (Impala)`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.0`
 - channels(root): `"nixos-18.03.132021.c0c5571ec1a"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`
@colehaus
Copy link
Author

Strangest piece of all: Just after posting this, I reverted my configuration changes to using broadcom_sta again, rebooted (certainly not the first time) and find that my wireless card works even with these drivers now!

To summarize the overall sequence:

  • broadcom_sta working on 17.09.
  • broadcom_sta stops working after upgrade to 18.03. No amount of fiddling will fix this.
  • switch to b43. Working on 18.03.
  • switch back to broadcom_sta. Working on 18.03.

@dtzWill
Copy link
Member

dtzWill commented Apr 19, 2018

Very curious. I don't have a lot to offer in terms of resolving it but this reminds me of some behavior I encountered long ago trying to get my wireless working with Linux:

At least on the hardware I had, a "soft" reboot from Windows to Linux would preserve the firmware written by the Windows driver-- which if you, from Linux after such a soft reboot, dumped to a file you could use to make the Linux driver work.

While you are only on Linux, perhaps a similar phenomenon could be at play here? Does performing a hard reboot change behavior regarding using broadcom_sta? (idea being that perhaps the b43 drivers' firmware persisted or something?)

Just a thought and apologies if I got my details wrong, it was quite a long time ago xD.

@teto
Copy link
Member

teto commented Jan 11, 2019

I am in a similar situation. Broadcom drivers would generate errors in dmesg and could not connect to some APs (while working on others). I ended up using the open source b43 driver which now connects fine but from times to times "lose the connection" (not sure what happens but I dont get any new info) so I have to force a reconnect.

@stale
Copy link

stale bot commented Jun 3, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Projects
None yet
Development

No branches or pull requests

3 participants