OS13.1 does not connect to WLAN (rtl8192cu, carl9170)

Hi.
I’m again one of the many with a WLAN problem on OS 13.1 (x64).
I have yesterday made a clean install (except for my /home) of OS 13.1 instead of upgrading from 12.3.
Installing Nvidia drivers and CUDA proved easy, but a major problem came up which has been mentioned in other
threads (i.e. https://forums.opensuse.org/showthread.php/494495-Wireless-connection-not-working-after-update-to-OpenSuse-13-1-from-12-3 )

  • my wireless does not work the way it is supposed to.

The problem:
Given correct authentication data and certificate the system fails to connect to the network.
The most advanced stage of the connection process is “authentication”, after that Network Manager behaves
as if the device is being hard-reset (short period where the NM icon in KDE indicates a completely disabled devie).
Network Manager also asks me for the password for the network periodically, even though I have input it in the
NM configuration for the network.

Attempt at solution:
In the thread mentioned above a solution was found by updating the kernel. I did this by pulling the RPMs for
3.11.10 and installing them manually :


warning: waiting for shared lock on /var/lib/rpm/Packages
kernel-source-3.11.10-25.1.noarch
kernel-desktop-3.11.10-25.1.x86_64
kernel-default-devel-3.11.10-25.1.x86_64
kernel-desktop-3.11.6-4.1.x86_64
kernel-devel-3.11.10-25.1.noarch
kernel-firmware-20150209git-36.1.noarch
kernel-desktop-devel-3.11.10-25.1.x86_64
kernel-xen-devel-3.11.10-25.1.x86_64
kernel-syms-3.11.10-25.1.x86_64

Here the firmware is from the latest kernel (3.19) in the repo, but even with the older one shipped with the 3.11.10 kernel
nothing changes. No luck even after the update!

Currently I have wasted almost a day to get this stuff to run and have no idea where the problem might be.
The only other thing I have not tried is to remove all the rtl8192cu modules from kernel and
compile the Realtek modules as suggested here: http://forum.linux-club.de/viewtopic.php?f=86&t=116155
N.B: no luck with traditional setup using ifup/yast either.

This is baffling because on OS 12.3 the adapter worked without a hitch. In fact if I plug it into
my laptop running OS 12.3 (kernel 3.13.4) it works.

Misc info as follows:
The hardware:
Wireless: TP-Link TL-WN822N
firmware: OS12.3 rtl8192cu
OS13.1 rtl8192cu

“lsusb” yields (among others):


Bus 001 Device 006: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
Bus 002 Device 002: ID 046a:0801 Cherry GmbH 

loaded modules seem to be OK (lsmod):


Module                  Size  Used by
rtl8192cu             102305  0 
rtl8192c_common        71013  1 rtl8192cu
rtl_usb                18877  1 rtl8192cu
rtlwifi                90192  2 rtl8192cu,rtl_usb
~~~~~~~~~omitted for brevity
x_tables               34059  11 xt_tcpudp,xt_pkttype,xt_LOG,xt_limit,ipt_REJECT,xt_conntrack,iptable_raw,xt_CT,iptable_filter,ip_tables,ip6_tables
arc4                   12608  2 
carl9170               95257  0 
mac80211              635601  4 rtl8192cu,rtl_usb,rtlwifi,carl9170
nvidia              10544258  29 
ath                    27923  1 carl9170
cfg80211              522716  4 rtlwifi,carl9170,mac80211,ath
rfkill                 26487  2 cfg80211
~~~~~~~~~omitted for brevity

Note that the carl9170 module is due to a spurious test with a Netgear WN111v2 stick and do not change the results.

The device does not seem to be blocked (rfkill list):


1: phy1: Wireless LAN
        Soft blocked: no
        Hard blocked: no

Target network:
University network, WPA2-EAP secured with PEAP-MSCHAPv2.

Relevant part of “iwlist scan”:


wlan0     Scan completed :
          Cell 11 - Address: 00:13:80:AA:3E:12
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=34/70  Signal level=-76 dBm  
                    Encryption key:on
                    ESSID:"802.1x"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
                              11 Mb/s; 12 Mb/s; 18 Mb/s
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=000000e0f6634d1f
                    Extra: Last beacon: 122ms ago
                    IE: Unknown: 00063830322E3178
                    IE: Unknown: 010882848B0C12961824
                    IE: Unknown: 03010B
                    IE: Unknown: 0706444520010D14
                    IE: Unknown: 0B050700978D5B
                    IE: Unknown: 2A0104
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : 802.1x
                    IE: Unknown: 32043048606C
                    IE: Unknown: 851E22008F000F00FF035900627232312D45472D4C6573657361610007000025
                    IE: Unknown: 9606004096001100
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : 802.1x
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
                    IE: Unknown: DD06004096010104
                    IE: Unknown: DD050040960305
                    IE: Unknown: DD050040960B09
                    IE: Unknown: DD050040961401

wpa_supplicant log:


wlan0: Trying to associate with 00:13:80:aa:3e:12 (SSID='802.1x' freq=2462 MHz)
wlan0: Associated with 00:13:80:aa:3e:12
wlan0: CTRL-EVENT-EAP-STARTED EAP authentication started
wlan0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=25
OpenSSL: tls_connection_ca_cert - Failed to load root certificates error:00000000:lib(0):func(0):reason(0)
wlan0: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected
wlan0: CTRL-EVENT-EAP-PEER-CERT depth=3 subject='/C=DE/O=Deutsche Telekom AG/OU=T-TeleSec Trust Center/CN=Deutsche Telekom Root CA 2'
wlan0: CTRL-EVENT-EAP-PEER-CERT depth=2 subject='/C=DE/O=DFN-Verein/OU=DFN-PKI/CN=DFN-Verein PCA Global - G01'
wlan0: CTRL-EVENT-EAP-PEER-CERT depth=1 subject='/C=DE/O=Universitaet Tuebingen/CN=Global-UNITUE-CA 01/emailAddress=unitue-ca@uni-tuebingen.de'
wlan0: CTRL-EVENT-EAP-PEER-CERT depth=0 subject='/C=DE/ST=Baden-Wuerttemberg/L=Tuebingen/O=Universitaet Tuebingen/OU=ZDV/CN=u-002-sias02.uni-tuebingen.de/emailAddress=nill@zdv.uni-tuebingen.de'
wlan0: CTRL-EVENT-DISCONNECTED bssid=00:13:80:aa:3e:12 reason=3 locally_generated=1
wlan0: SME: Trying to authenticate with 00:13:80:aa:3e:12 (SSID='802.1x' freq=2462 MHz)
wlan0: Trying to associate with 00:13:80:aa:3e:12 (SSID='802.1x' freq=2462 MHz)
wlan0: Associated with 00:13:80:aa:3e:12
wlan0: CTRL-EVENT-EAP-STARTED EAP authentication started
wlan0: CTRL-EVENT-DISCONNECTED bssid=00:13:80:aa:3e:12 reason=3 locally_generated=1
wlan0: SME: Trying to authenticate with 00:13:80:aa:3e:12 (SSID='802.1x' freq=2462 MHz)
wlan0: Trying to associate with 00:13:80:aa:3e:12 (SSID='802.1x' freq=2462 MHz)
wlan0: Associated with 00:13:80:aa:3e:12
wlan0: CTRL-EVENT-EAP-STARTED EAP authentication started
wlan0: CTRL-EVENT-DISCONNECTED bssid=00:13:80:aa:3e:12 reason=3 locally_generated=1
dbus: wpas_dbus_bss_signal_prop_changed: Unknown Property value 7
wlan0: SME: Trying to authenticate with 00:13:80:aa:3e:12 (SSID='802.1x' freq=2462 MHz)
wlan0: Trying to associate with 00:13:80:aa:3e:12 (SSID='802.1x' freq=2462 MHz)
wlan0: Associated with 00:13:80:aa:3e:12
wlan0: CTRL-EVENT-EAP-STARTED EAP authentication started
wlan0: CTRL-EVENT-DISCONNECTED bssid=00:13:80:aa:3e:12 reason=3 locally_generated=1
wlan0: SME: Trying to authenticate with 00:13:80:aa:3e:12 (SSID='802.1x' freq=2462 MHz)
wlan0: Trying to associate with 00:13:80:aa:3e:12 (SSID='802.1x' freq=2462 MHz)
wlan0: Associated with 00:13:80:aa:3e:12
wlan0: CTRL-EVENT-EAP-STARTED EAP authentication started

NetworkManager log:


2015-04-12T21:15:28.746328+02:00 BPS-C NetworkManager[719]: <info> Activation (wlan0/wireless): connection '802.1x' has security, and secrets exist.  No new secrets needed.
2015-04-12T21:15:28.746629+02:00 BPS-C NetworkManager[719]: <info> Config: added 'ssid' value '802.1x'
2015-04-12T21:15:28.746884+02:00 BPS-C NetworkManager[719]: <info> Config: added 'scan_ssid' value '1'
2015-04-12T21:15:28.747159+02:00 BPS-C NetworkManager[719]: <info> Config: added 'bssid' value '00:13:80:aa:3e:12'
2015-04-12T21:15:28.747462+02:00 BPS-C NetworkManager[719]: <info> Config: added 'key_mgmt' value 'WPA-EAP'
2015-04-12T21:15:28.747733+02:00 BPS-C NetworkManager[719]: <info> Config: added 'password' value '<omitted>'
2015-04-12T21:15:28.747998+02:00 BPS-C NetworkManager[719]: <info> Config: added 'eap' value 'PEAP'
2015-04-12T21:15:28.748270+02:00 BPS-C NetworkManager[719]: <info> Config: added 'fragment_size' value '1300'
2015-04-12T21:15:28.748529+02:00 BPS-C NetworkManager[719]: <info> Config: added 'phase2' value 'auth=MSCHAPV2'
2015-04-12T21:15:28.748787+02:00 BPS-C NetworkManager[719]: <info> Config: added 'ca_cert' value '/home/aquinox/Dokumente/DeutscheTelekomRootCA2.der'
2015-04-12T21:15:28.749055+02:00 BPS-C NetworkManager[719]: <info> Config: added 'identity' value 'zxmmr77'
2015-04-12T21:15:28.749321+02:00 BPS-C NetworkManager[719]: <info> Config: added 'bgscan' value 'simple:30:-65:300'
2015-04-12T21:15:28.749723+02:00 BPS-C NetworkManager[719]: <info> Config: added 'proactive_key_caching' value '1'
2015-04-12T21:15:28.750025+02:00 BPS-C NetworkManager[719]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
2015-04-12T21:15:28.750329+02:00 BPS-C NetworkManager[719]: <info> Config: set interface ap_scan to 1
2015-04-12T21:15:28.754230+02:00 BPS-C NetworkManager[719]: <info> (wlan0): supplicant interface state: disconnected -> scanning
2015-04-12T21:15:54.475772+02:00 BPS-C NetworkManager[719]: <warn> Activation (wlan0/wireless): association took too long, failing activation.
2015-04-12T21:15:54.476226+02:00 BPS-C NetworkManager[719]: <info> (wlan0): device state change: config -> failed (reason 'SSID not found') [50 120 53]
2015-04-12T21:15:54.476507+02:00 BPS-C NetworkManager[719]: <info> NetworkManager state is now DISCONNECTED
2015-04-12T21:15:54.476768+02:00 BPS-C NetworkManager[719]: <info> Marking connection '802.1x' invalid.
2015-04-12T21:15:54.477071+02:00 BPS-C NetworkManager[719]: <warn> Activation (wlan0) failed for connection '802.1x'
2015-04-12T21:15:54.477414+02:00 BPS-C NetworkManager[719]: <info> (wlan0): device state change: failed -> disconnected (reason 'none') [120 30 0]
2015-04-12T21:15:54.477681+02:00 BPS-C NetworkManager[719]: <info> (wlan0): deactivating device (reason 'none') [0]
2015-04-12T21:15:54.477977+02:00 BPS-C NetworkManager[719]: <info> (wlan0): supplicant interface state: scanning -> disconnected
2015-04-12T21:15:54.478245+02:00 BPS-C NetworkManager[719]: <warn> Couldn't disconnect supplicant interface: This interface is not connected.

“dmesg | tail -n 40” after a connection attempt:


  533.389637] cfg80211: Calling CRDA for country: DE
  533.392428] cfg80211: Regulatory domain changed to country: DE
  533.392431] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
  533.392434] cfg80211:   (2400000 KHz - 2483500 KHz @ 40000 KHz), (N/A, 2000 mBm)
  533.392435] cfg80211:   (5150000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
  533.392437] cfg80211:   (5250000 KHz - 5350000 KHz @ 40000 KHz), (N/A, 2000 mBm)
  533.392439] cfg80211:   (5470000 KHz - 5725000 KHz @ 40000 KHz), (N/A, 2698 mBm)
  533.392441] cfg80211:   (57240000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 4000 mBm)
  558.001466] wlan0: deauthenticating from 00:13:80:aa:3e:12 by local choice (reason=3)
  558.004493] cfg80211: Calling CRDA to update world regulatory domain
  558.008461] cfg80211: World regulatory domain updated:
  558.008464] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
  558.008466] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
  558.008468] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
  558.008470] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
  558.008472] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
  558.008474] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
  564.902490] wlan0: authenticate with 00:13:80:aa:3e:12
  564.904321] wlan0: send auth to 00:13:80:aa:3e:12 (try 1/3)
  564.948265] wlan0: authenticated
  564.949023] wlan0: associate with 00:13:80:aa:3e:12 (try 1/3)
  564.978648] wlan0: RX AssocResp from 00:13:80:aa:3e:12 (capab=0x411 status=0 aid=39)
  564.978701] wlan0: associated
  564.978869] cfg80211: Calling CRDA for country: DE
  564.981698] cfg80211: Regulatory domain changed to country: DE
  564.981701] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
  564.981703] cfg80211:   (2400000 KHz - 2483500 KHz @ 40000 KHz), (N/A, 2000 mBm)
  564.981705] cfg80211:   (5150000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
  564.981707] cfg80211:   (5250000 KHz - 5350000 KHz @ 40000 KHz), (N/A, 2000 mBm)
  564.981709] cfg80211:   (5470000 KHz - 5725000 KHz @ 40000 KHz), (N/A, 2698 mBm)
  564.981711] cfg80211:   (57240000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 4000 mBm)
  589.002713] wlan0: deauthenticating from 00:13:80:aa:3e:12 by local choice (reason=3)
  589.010200] cfg80211: Calling CRDA to update world regulatory domain
  589.013763] cfg80211: World regulatory domain updated:
  589.013768] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
  589.013770] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
  589.013772] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
  589.013774] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
  589.013776] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
  589.013778] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

It looks like somehow you were using a much later kernel in 12.3 than you are now using in 13.2.

It looks like the kernel repositories for SUSE and openSUSE starts at this URL
http://download.opensuse.org/repositories/Kernel:/

Drilling down, it looks like you can install a 3.16 kernel for openSUSE 13.2 (and perhaps optionally less recent kernels) using the following zypper command

Add the Kernel repo for 13.2

zypper ar http://download.opensuse.org/repositories/Kernel:/openSUSE-13.2/standard/ openSUSE:Kernels_13.2

You should be able to auto update to the latest available kernel by simply doing a system update with the following command

zypper up

Hopefully, that should address your issue.

TSU

I’ll see about the 3.16 kernel.
3.19 failed me on the graphics (probably because I have NVIDIA drivers installed on the 3.11 kernel).

The zypper method won’t work in my case though - wlan is the sole connection of that PC to the exterior world, save for USB stick.

Ok. The problem seems to have been taken care of by a kernel update.

Having removed the NVIDIA drivers and uninstalled the 3.11.10 kernel I could install the 3.19 kernel using the rpms from Kernel:/stable repo.

So far the system works. Therefore I conclude:

To get the Network working in OS 13.1 a kernel update to a kernel > 3.11 may be necessary.

N.B: The newest version of the NVIDIA driver (346.59) was sufficient after the update to 3.19. to get GPGPU to work.