Wifi not working on leap 42.3 BCM43142

Hi,
I have been using opensuse 42.3 on my machine but cannot get the wifi to work. I have been through many threads and didn’t find the solution to fix this. Initially when I installed the OS the wifi worked by downloading broadcom wl from packman, but since I switched to development kernel I cannot get the wifi to work again.
Here’s some info that you may find useful

**linux-j3xi:/home/Mangesh/Desktop/CDAC/OS/AssigUS/examples #** systemctl status network    
**●** NetworkManager.service - Network Manager
   Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled)
   Active: **active (running)** since Fri 2017-12-22 01:19:48 IST; 12min ago
 Main PID: 1077 (NetworkManager)
    Tasks: 4 (limit: 512)
   CGroup: /system.slice/NetworkManager.service
           ├─1077 /usr/sbin/NetworkManager --no-daemon
           └─1887 /sbin/dhclient -d -q -sf /usr/lib/nm-dhcp-helper -pf /var/run/dhclient-eth0.pid -lf /var/lib/NetworkManager/dhclient-e6fa0fb1-fc68-4bd9-a5d4-9b1d5e3c232e-eth0.lease -cf /v...

Dec 22 01:20:00 linux-j3xi NetworkManager[1077]: <info>  NetworkManager state is now CONNECTED_LOCAL
Dec 22 01:20:00 linux-j3xi NetworkManager[1077]: <info>  NetworkManager state is now CONNECTED_SITE
Dec 22 01:20:00 linux-j3xi NetworkManager[1077]: <info>  Policy set 'Wired connection 1' (eth0) as default for IPv4 routing and DNS.
Dec 22 01:20:02 linux-j3xi NetworkManager[1077]: <info>  (eth0): Activation: successful, device activated.
Dec 22 01:20:02 linux-j3xi NetworkManager[1077]: <info>  startup complete
Dec 22 01:20:02 linux-j3xi NetworkManager[1077]: <info>  NetworkManager state is now CONNECTED_GLOBAL
Dec 22 01:20:03 linux-j3xi NetworkManager[1077]: <13>Dec 22 01:20:01 dns-resolver: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched...
Dec 22 01:20:03 linux-j3xi NetworkManager[1077]: <13>Dec 22 01:20:01 dns-resolver: You can find my version in /etc/resolv.conf.netconfig
Dec 22 01:20:03 linux-j3xi NetworkManager[1077]: ATTENTION: You have modified /etc/resolv.conf.  Leaving it untouched...
Dec 22 01:20:03 linux-j3xi NetworkManager[1077]: You can find my version in /etc/resolv.conf.netconfig ...


**linux-j3xi:/home/Mangesh/Desktop/CDAC/OS/AssigUS/examples #** /usr/sbin/rfkill list    
0: asus-wlan: Wireless LAN
        Soft blocked: no                                                                                                                                                                         
        Hard blocked: no                                                                                                                                                                         
1: asus-bluetooth: Bluetooth                                                                                                                                                                     
        Soft blocked: no                                                                                                                                                                         
        Hard blocked: no                                                                                                                                                                         
2: hci0: Bluetooth                                                                                                                                                                               
        Soft blocked: no                                                                                                                                                                         
        Hard blocked: no  

**linux-j3xi:/home/Mangesh/Desktop/CDAC/OS/AssigUS/examples #** nmcli g                    
STATE      CONNECTIVITY  WIFI-HW  WIFI     WWAN-HW  WWAN     
connected  full          enabled  enabled  enabled  enabled 

**linux-j3xi:/home/Mangesh/Desktop/CDAC/OS/AssigUS/examples #** zypper lr -d             
Repository priorities are without effect. All enabled repositories share the same priority.

#  | Alias                               | Name                                    | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                    
                               | Service
---+-------------------------------------+-----------------------------------------+---------+-----------+---------+----------+--------+--------------------------------------------------------
-------------------------------+--------
 1 | google-chrome                       | google-chrome                           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/x86_64    
                               |         
 2 | google-chrome-beta                  | google-chrome-beta                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/x86_64    
                               |         
 3 | http-download.opensuse.org-47d124b5 | openSUSE:Leap:42.2                      | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.2/rep
o/oss/                         |         
 4 | openSUSE-Leap-42.3-0                | openSUSE-Leap-42.3-0                    | No      | ----      | ----    |   99     | yast2  | hd:///?device=/dev/disk/by-id/usb-SanDisk_Cruzer_Blade_
4C530699920603114300-0:0-part1 |         
 5 | packman                             | packman                                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE
_Leap_42.3/                    |         
 6 | repo-debug                          | openSUSE-Leap-42.3-Debug                | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/42
.3/repo/oss/                   |         
 7 | repo-debug-non-oss                  | openSUSE-Leap-42.3-Debug-Non-Oss        | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/42
.3/repo/non-oss/               |         
 8 | repo-debug-update                   | openSUSE-Leap-42.3-Update-Debug         | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/42.3/oss
/                              |         
 9 | repo-debug-update-non-oss           | openSUSE-Leap-42.3-Update-Debug-Non-Oss | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/42.3/non
-oss/                          |         
10 | repo-non-oss                        | openSUSE-Leap-42.3-Non-Oss              | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.3/rep
o/non-oss/                     |         
11 | repo-oss                            | openSUSE-Leap-42.3-Oss                  | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.3/rep
o/oss/                         |         
12 | repo-source                         | openSUSE-Leap-42.3-Source               | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/4
2.3/repo/oss/                  |         
13 | repo-source-non-oss                 | openSUSE-Leap-42.3-Source-Non-Oss       | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/4
2.3/repo/non-oss/              |         
14 | repo-update                         | openSUSE-Leap-42.3-Update               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.3/oss/     
                               |         
15 | repo-update-non-oss                 | openSUSE-Leap-42.3-Update-Non-Oss       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.3/non-oss/ 
                               |        


**linux-j3xi:/home/Mangesh/Desktop/CDAC/OS/AssigUS/examples #** /sbin/ifconfig -a        
eth0      Link encap:Ethernet  HWaddr 08:62:66:23:3E:93   
          inet addr:192.168.0.11  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::a62:66ff:fe23:3e93/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5727 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5304 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000  
          RX bytes:3328625 (3.1 Mb)  TX bytes:1063808 (1.0 Mb)

lo        Link encap:Local Loopback   
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1  
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


Please do help me with this.:’(

We need to see the hardware (chipset) details…

/sbin/lspci -nnk|grep -iA3 '\02'

*This will report all network class devices and any driver loaded

Thank You for the quick response

here’s the output

**linux-j3xi:/home/Mangesh/Desktop/CDAC/OS/AssigUS/examples #** /sbin/lspci -nnk|grep -iA3 '\[02'
02:00.0 Network controller [b][02[/b]80]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)
        Subsystem: Lite-On Communications Inc Device [11ad:6675]
        Kernel modules: bcma
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5286 PCI Express Card Reader [10ec:5286] (rev 01)
--
03:00.2 Ethernet controller **[02[/b]00]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 06)
        Subsystem: Realtek Semiconductor Co., Ltd. Device [10ec:0123]
        Kernel driver in use: r8169
        Kernel modules: r8169


**

Is your System up to date?

If yes, install broadcom-wl:

zypper in broadcom-wl broadcom-wl-kmp-default

Insert the Module and restart yout Network or restart yout PC.

PS:
You should also delete this 42.2 Repo:

3 | http-download.opensuse.org-47d124b5 | openSUSE:Leap:42.2 | Yes | (r ) Yes | Yes | 99 | yast2 | http://download.opensuse.org/distribution/leap/42.2/rep

@Sauerland: Don’t forget that the OP mentioned that they are using a non-standard kernel.

@Mangesh: Any reason for not using the default openSUSE Leap kernel?

Thanks, I should read more carefully.

@Mangesh
What Kernel, how is it build?

I’m student, studying GPOS and RTOS, for our academics we developed certain kernel modules and loaded them to system space. But at the first by making some changes using “make menuconfig” we build a new kernel and now we are working on the same.
Hope I have answered to both of you, correct me if I’m wrong, I’m still a beginner to all this. :slight_smile:
Thank You.

Maybe Firmware is missing:

journalctl -b | grep -Ei 'firm|broadc'

Or install broadcom-wl:
https://www.broadcom.com/support/download-search/?pf=Wireless+LAN+Infrastructure

Must maybe patched to work with your secret Kernel…

**linux-j3xi:/home/Mangesh/Desktop/CDAC/OS/AssigUS/examples #** journalctl -b | grep -Ei 'firm|broadc'
Dec 22 23:25:10 linux-j3xi kernel: **Firm**ware Bug]: ACPI: BIOS _OSI(Linux) query ignored
Dec 22 23:25:12 linux-j3xi kernel: usb 1-4: Manufacturer: **Broadc**om Corp
Dec 22 23:25:27 linux-j3xi kernel: bluetooth hci0: Direct **firm**ware load for brcm/BCM.hcd failed with error -2
Dec 22 23:25:58 linux-j3xi NetworkManager[1088]: <info>  monitoring kernel **firm**ware directory '/lib/**firm**ware'.


@Sauerland
I have broadcom wl already installed, also couple of days back I received a update for the same.

If you install an newer kernel, you must maybe patch broadcom-wl.

So what Version is your secret Kernel-Version?

uname -a

@Sauerland
I have broadcom wl already installed, also couple of days back I received a update for the same.

The kernel-specific package (broadcom-wl -kmp-default) won’t match your installed kernel though.

The installed packages can be listed using

zypper se -si broadcom
Mangesh@linux-j3xi:/usr/local/lpcxpresso_8.2.2_650/lpcxpresso> uname -a
Linux linux-j3xi 4.4.92-SUSE-dev-kernel #5 SMP Fri Nov 17 21:12:15 IST 2017 x86_64 x86_64 x86_64 GNU/Linux

Mangesh@linux-j3xi:/usr/local/lpcxpresso_8.2.2_650/lpcxpresso> zypper se -si broadcom
Loading repository data...
Reading installed packages...

S  | Name                    | Type    | Version                       | Arch   | Repository        
---+-------------------------+---------+-------------------------------+--------+------------------
i+ | broadcom-wl             | package | 6.30.223.271-9.11             | x86_64 | packman           
i+ | broadcom-wl-kmp-default | package | 6.30.223.271_k4.4.92_31-9.6   | x86_64 | (System Packages)
i+ | broadcom-wl-kmp-default | package | 6.30.223.271_k4.4.103_36-9.11 | x86_64 | packman  

Here’s the output for the kernel version and broadcom package check.
As you asked for the kernel version, it is the same as that I had earlier and I just made the changes to enabling some modules insert and remove. After that I didn’t update my kernel to latest version.
Sorry for the late reply though, was busy with my exams. :slight_smile:

So the precompiled Package of broadcom-wl from Packman does not work.

Download the src.rpm and build it by your own.

As you asked for the kernel version, it is the same as that I had earlier and I just made the changes to enabling some modules insert and remove.

That means?
Please explain.

how to do this? will you please guide me?

I installed the OS then I had the wifi working, then after some time I updated the kernel here also I again updated the wifi driver had it working. Then on this kernel I made changes for my study purpose and booted to the same nothing else was changed except the modification via menuconfig.
here the steps which i followed to build my kernel:

  1. Downloaded kernel src tree
    In “/usr/src/linux-4…” directory I executed following commands
  2. make menuconfig (under which I changed the name in general setup and under Enable loadable module support=> enabled modules unloading and **Source checksum for all modules **)
  3. make -j 8
  4. make modules_install
  5. make install
    That’s it.
    After this I booted to this kernel and found that wifi is down again. No kernel updates after that.:frowning:

I am still a beginner to all this correct me if I’m wrong.
I’m really sorry for the late reply again.:cry:

Download the broadcom-wl-xxxx.src.rpm package and build it with

rpmbuild --rebuild <name of src rpm>

The binary .rpm file (of same name) will be located in /usr/src/packages/RPMS/…

Change directory to where the .rpm file is located, and install with

rpm -Uvih broadcom-wl-xxxx.rpm

*Substitute with actual name of the created .rpm file. Reboot once installation is complete.

http://blog.onedollardata.com/how-to-install-src-rpm-packages-in-opensuse/