Bug 787079

Summary: Wifi not working for Dell Wireless 1397 (BCM4312)
Product: [openSUSE] openSUSE 12.2 Reporter: Forgotten User 10buyl7JnO <forgotten_10buyl7JnO>
Component: BasesystemAssignee: E-mail List <gnome-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: alinm.elena, dimstar, ncutler
Version: Final   
Target Milestone: ---   
Hardware: i586   
OS: openSUSE 12.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User 10buyl7JnO 2012-10-28 16:17:07 UTC
User-Agent:       Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4

Wifi is not working for me on opensuse 12.2. It was using b43 driver for broadcom 1397 but it was not getting ip address and continuously keep reconnecting so I was never able to use wifi. I tried to install broadcom-wl but that also didn't help. When I was using b43 it was at least showing wireless option in network management plasmoid but when using broadcom-wl, it doesn't even show wireless option. I have to reboot to windows to use wifi.

Here is information from lspci.

03:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)
        Subsystem: Dell Wireless 1397 WLAN Mini-Card [1028:000c]


Reproducible: Always

Steps to Reproduce:
1. Enable wifi switch on laptop.
Actual Results:  
Can't use wifi connection.

Expected Results:  
Wifi should work.

NetworkManager logs

^@Oct 28 21:44:45 linux-538t NetworkManager[597]: <info> WiFi now enabled by radio killswitch
Oct 28 21:44:45 linux-538t NetworkManager[597]: <info> (wlan0): bringing up device.
Oct 28 21:44:47 linux-538t NetworkManager[597]: <info> (wlan0) supports 4 scan SSIDs
Oct 28 21:44:47 linux-538t NetworkManager[597]: <info> (wlan0): supplicant interface state: starting -> ready
Oct 28 21:44:47 linux-538t NetworkManager[597]: <info> (wlan0): device state change: unavailable -> disconnected (reason 'supplicant-available') [20 30 42]
Oct 28 21:44:47 linux-538t NetworkManager[597]: <warn> Trying to remove a non-existant call id.
Oct 28 21:44:47 linux-538t NetworkManager[597]: <info> (wlan0): supplicant interface state: ready -> inactive
Oct 28 21:44:47 linux-538t NetworkManager[597]: <info> (wlan0) supports 4 scan SSIDs
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Auto-activating connection 'ruchir'.
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Activation (wlan0) starting connection 'ruchir'
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> (wlan0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Activation (wlan0/wireless): access point 'ruchir' has security, but secrets are required.
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> (wlan0): device state change: config -> need-auth (reason 'none') [50 60 0]
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> (wlan0): device state change: need-auth -> prepare (reason 'none') [60 40 0]
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Activation (wlan0/wireless): connection 'ruchir' has security, and secrets exist.  No new secrets needed.
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Config: added 'ssid' value 'ruchir'
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Config: added 'scan_ssid' value '1'
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Config: added 'psk' value '<omitted>'
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> Config: set interface ap_scan to 1
Oct 28 21:44:48 linux-538t NetworkManager[597]: <info> (wlan0): supplicant interface state: inactive -> scanning
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info> (wlan0): supplicant interface state: scanning -> authenticating
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info> (wlan0): supplicant interface state: authenticating -> associating
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info> (wlan0): supplicant interface state: associating -> 4-way handshake
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info> (wlan0): supplicant interface state: 4-way handshake -> completed
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info> Activation (wlan0/wireless) Stage 2 of 5 (Device Configure) successful.  Connected to wireless network 'ruchir'.
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) scheduled.
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) started...
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info> (wlan0): device state change: config -> ip-config (reason 'none') [50 70 0]
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info> Activation (wlan0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info> dhclient started with pid 4207
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) complete.
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info> (wlan0): DHCPv4 state changed nbi -> preinit
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info> (wlan0): DHCPv4 state changed preinit -> reboot
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info>   address 192.168.1.2
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info>   prefix 24 (255.255.255.0)
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info>   gateway 192.168.1.1
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info>   nameserver '192.168.1.1'
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info> Activation (wlan0) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
Oct 28 21:44:50 linux-538t NetworkManager[597]: <info> Activation (wlan0) Stage 5 of 5 (IPv4 Commit) started...
Oct 28 21:44:51 linux-538t NetworkManager[597]: <info> (wlan0): device state change: ip-config -> activated (reason 'none') [70 100 0]
Oct 28 21:44:51 linux-538t NetworkManager[597]: <info> Clearing nscd hosts cache.
Oct 28 21:44:51 linux-538t NetworkManager[597]: <info> Policy set 'ruchir' (wlan0) as default for IPv4 routing and DNS.
Oct 28 21:44:51 linux-538t NetworkManager[597]: <info> Activation (wlan0) successful, device activated.
Oct 28 21:44:51 linux-538t NetworkManager[597]: <info> Activation (wlan0) Stage 5 of 5 (IPv4 Commit) complete.
Oct 28 21:44:51 linux-538t nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/nfs' exited with error status 2.
Comment 1 Dominique Leuenberger 2012-11-08 10:04:04 UTC
Can you check what owns /etc/NetworkManager/dispatcher.d/nfs ?
(rpm -qf /etc/NetworkManager/dispatcher.d/nfs )

The 'exit code 2' of that script tears down the connection again I'm afraid.
Comment 2 Forgotten User 10buyl7JnO 2012-11-08 10:20:48 UTC
ruchir@linux-538t:~> rpm -qf /etc/NetworkManager/dispatcher.d/nfs
NetworkManager-0.9.6.4-1.1.i586

I don't use NFS currently.
Comment 3 Dominique Leuenberger 2012-11-08 10:26:15 UTC
from nfs file:

RL=$(/sbin/runlevel); RL=${RL#* }
test -z "$RL" && RL=`sed -n 's=^id:\(.\):initdefault.*$=\1=p' /etc/inittab`

case "$2" in
        up)
                ls /etc/init.d/rc${RL}.d/S*nfs &>/dev/null || exit 2


=> so exit 2 seems to be expected in this case ?!?

IMHO, this should not be done like this, as systemd won't use those files in first place...
Comment 4 Dominique Leuenberger 2012-11-08 10:36:05 UTC
Just to verify that this IS actually the issue you're facing, can you please change the line

  ls /etc/init.d/rc${RL}.d/S*nfs &>/dev/null || exit 2

in /etc/NetworkManager/dispatcher.d/nfs
to 

  ls /etc/init.d/rc${RL}.d/S*nfs &>/dev/null || exit 0

? This would make the script 'exit cleanly'
Comment 5 Alin M Elena 2012-11-08 10:42:03 UTC
the nfs  script error it is not related in my experience with the performance of the wireless... as I do not use nfs... for me it just takes bits in the log file


the problem is the driver... I suspect that you use b43 or whatever modern name they have nowadays...

the only way to use the card (4322) was to install wl (broadcom-wl) from packman.

Alin
Comment 6 Forgotten User 10buyl7JnO 2012-11-11 03:44:43 UTC
After updating nfs script error wifi through wl driver is working properly now.
Comment 7 Nathan Cutler 2017-08-13 20:25:20 UTC
The incriminated line in /etc/NetworkManager/dispatcher.d/nfs is no longer present in openSUSE Leap 42.3 which indicates that this has been fixed.