You are not logged in.

#1 2020-08-20 16:51:57

cmsigler
Member
Registered: 2013-11-18
Posts: 35

YAYA BCM43142 wl driver doesn't work after suspend/resume cycle

Hi,

First, references to two other threads from years ago:

https://bbs.archlinux.org/viewtopic.php?id=206537
https://bbs.archlinux.org/viewtopic.php?id=215101

In the latter one, ProtonBeam seems to have tried everything sensible including the kitchen sink.  I don't have any additional insight :^(

Equipment:
An older HP Pavilion model 17-g161us laptop with BCM43142 wireless

08:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n [14e4:4365] (rev 01)
	DeviceName: Broadcom BCM43142 802.11 b/g/n 1x1Wi-Fi + BT4.0 M.2 Combo Adapter
	Subsystem: Hewlett-Packard Company Device [103c:804a]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 18
	Region 0: Memory at c3100000 (64-bit, non-prefetchable) [size=32K]
	Capabilities: <access denied>
	Kernel driver in use: wl
	Kernel modules: bcma, wl
00: e4 14 65 43 06 00 10 00 01 00 80 02 10 00 00 00
10: 04 00 10 c3 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 3c 10 4a 80
30: 00 00 00 00 40 00 00 00 00 00 00 00 ff 01 00 00

Symptoms:
1.) Wireless networking authenticated and configured with wpa_supplicant + dhcpcd works fine; same is true with iwd.
2.) Hibernate to swap partition/resume with resume HOOK in initcpio.conf works fine; when system is up and running wireless works as expected.
3.) Problem: Suspend to RAM/resume cycle kills wireless and nothing I try can get it working again.

The root cause seems to be that the card/driver is failing to scan.  The errors I get:

Aug 19 19:33:44 blah iwd[353]: Received error during CMD_TRIGGER_SCAN: Invalid argument (22)

Aug 19 19:47:46 blah wpa_supplicant[1970]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1

The error code seems to be "-22" -- I've searched and found no useful info, but this error code is reported in other places:

https://forums.kali.org/showthread.php? … ng-process
https://github.com/NixOS/nixpkgs/issues/39151
https://ubuntuforums.org/showthread.php?t=2405333

My 5c diagnosis of the problem is:
-- Power on of the laptop initializes the wireless card or its firmware somehow (via POST/BIOS?).
-- When resuming from suspend/sleep, the POST/BIOS doesn't run when the laptop powers up, hence the card isn't properly initialized and doesn't want to do what it's supposed to.

If this is correct, would anyone have any ideas how to force "reset"/re-initialize the BCM43142 wireless card without powering off and on again???  TIA!

Clemmitt Sigler

Offline

Board footer

Powered by FluxBB