[Workaround] [Ubuntu Server 15.04/15.10] Realtek RTL8723AE cannot connect to WPA2/AES

Bug #1510648 reported by jean-christophe manciot
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu Gnome Server 15.10 - 4.2.0-16-generic - network-manager-gnome 0.9.10.1
-------------------------------------------------------------------------------
sudo systemctl status NetworkManager.service
● NetworkManager.service - Network Manager
   Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2015-10-27 12:15:32 CET; 1min 17s ago
 Main PID: 1204 (NetworkManager)
   CGroup: /system.slice/NetworkManager.service
           └─1204 /usr/sbin/NetworkManager --no-daemon

Oct 27 12:15:59 msi-ge60-ubuntu NetworkManager[1204]: nm_urfkill_get_wlan_state: assertion 'self->wlan_proxy != NULL' failed
Oct 27 12:16:00 msi-ge60-ubuntu NetworkManager[1204]: nm_urfkill_get_wlan_state: assertion 'self->wlan_proxy != NULL' failed
Oct 27 12:16:00 msi-ge60-ubuntu NetworkManager[1204]: nm_urfkill_get_wlan_state: assertion 'self->wlan_proxy != NULL' failed
Oct 27 12:16:02 msi-ge60-ubuntu NetworkManager[1204]: nm_urfkill_get_wlan_state: assertion 'self->wlan_proxy != NULL' failed
Oct 27 12:16:03 msi-ge60-ubuntu NetworkManager[1204]: nm_urfkill_get_wlan_state: assertion 'self->wlan_proxy != NULL' failed
Oct 27 12:16:03 msi-ge60-ubuntu NetworkManager[1204]: nm_urfkill_get_wlan_state: assertion 'self->wlan_proxy != NULL' failed
Oct 27 12:16:03 msi-ge60-ubuntu NetworkManager[1204]: nm_urfkill_get_wlan_state: assertion 'self->wlan_proxy != NULL' failed
Oct 27 12:16:05 msi-ge60-ubuntu NetworkManager[1204]: nm_urfkill_get_wlan_state: assertion 'self->wlan_proxy != NULL' failed
Oct 27 12:16:20 msi-ge60-ubuntu NetworkManager[1204]: nm_urfkill_get_wlan_state: assertion 'self->wlan_proxy != NULL' failed
Oct 27 12:16:20 msi-ge60-ubuntu NetworkManager[1204]: nm_urfkill_get_wlan_state: assertion 'self->wlan_proxy != NULL' failed

Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) wrote :
Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) wrote :
Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) wrote :
Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) wrote :

Bug report first sent to Gnome: https://bugzilla.gnome.org/show_bug.cgi?id=757178
It seems to be an issue related to "nm_urfkill_get_wlan_state()" coming from an Ubuntu patch.

Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) wrote :

Some additional information:
- no similar issue on the same laptop with Ubuntu ***desktop*** 15.04/15.10
- same issue with Ubuntu ***server*** 15.04/15.10

I've modified the title to reflect these informations.

summary: - [Ubuntu 15.10] Realtek RTL8723AE cannot connect to WPA2/AES
+ [Ubuntu Server 15.04/15.10] Realtek RTL8723AE cannot connect to WPA2/AES
Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) wrote : Re: [Ubuntu Server 15.04/15.10] Realtek RTL8723AE cannot connect to WPA2/AES
Download full text (6.4 KiB)

I've made some progress:
If I remove the following lines from /etc/network/interfaces:
iface wlan0 inet dhcp
iface wlan0 inet6 auto

NetworkManager errors "nm_urfkill_get_wlan_state: assertion 'self->wlan_proxy != NULL' failed" are gone:
systemctl status NetworkManager
● NetworkManager.service - Network Manager
   Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2015-11-02 09:42:09 CET; 3s ago
 Main PID: 5524 (NetworkManager)
   CGroup: /system.slice/NetworkManager.service
           └─5524 /usr/sbin/NetworkManager --no-daemon

Nov 02 09:42:10 msi-ge60-ubuntu NetworkManager[5524]: <info> (tap1): device state change: secondaries -> activated (reason 'none') [90 100 0]
Nov 02 09:42:10 msi-ge60-ubuntu NetworkManager[5524]: <info> (tap1): Activation: successful, device activated.
Nov 02 09:42:10 msi-ge60-ubuntu NetworkManager[5524]: <info> (virbr4): device state change: secondaries -> activated (reason 'none') [90 100 0]
Nov 02 09:42:10 msi-ge60-ubuntu NetworkManager[5524]: <info> (virbr4): Activation: successful, device activated.
Nov 02 09:42:10 msi-ge60-ubuntu NetworkManager[5524]: <info> (virbr11): device state change: secondaries -> activated (reason 'none') [90 100 0]
Nov 02 09:42:10 msi-ge60-ubuntu NetworkManager[5524]: <info> (virbr11): Activation: successful, device activated.
Nov 02 09:42:10 msi-ge60-ubuntu NetworkManager[5524]: <info> (virbr7): device state change: secondaries -> activated (reason 'none') [90 100 0]
Nov 02 09:42:10 msi-ge60-ubuntu NetworkManager[5524]: <info> (virbr7): Activation: successful, device activated.
Nov 02 09:42:10 msi-ge60-ubuntu NetworkManager[5524]: <info> (virbr3): device state change: secondaries -> activated (reason 'none') [90 100 0]
Nov 02 09:42:10 msi-ge60-ubuntu NetworkManager[5524]: <info> (virbr3): Activation: successful, device activated.

However, it seems that the module rtl8723ae is not loaded:
lsmod | grep -i rtl8723ae

modinfo rtl8723ae
libkmod: ERROR ../libkmod/libkmod-module.c:192 kmod_module_parse_depline: ctx=0x55ae7dba3010 path=/lib/modules/4.2.0-16-generic/updates/drivers/net/wireless/rtlwifi/rtl8723com/rtl8723-common.ko error=No such file or directory
libkmod: ERROR ../libkmod/libkmod.c:506 lookup_builtin_file: could not open builtin file '/lib/modules/4.2.0-16-generic/modules.builtin.bin'
filename: /lib/modules/4.2.0-16-generic/updates/drivers/net/wireless/rtlwifi/rtl8723ae/rtl8723ae.ko
modinfo: ERROR: could not get modinfo from 'rtl8723ae': No such file or directory

lshw -C network
  *-network UNCLAIMED
       description: Network controller
       product: RTL8723AE PCIe Wireless Network Adapter
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:05:00.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list
       configuration: latency=0
       resources: ioport:c000(size=256) memory:f7800000-f7803fff

This is strange because I can see some WiFi networks in the top right hand side menu.
Furthermore, if I try to connect to a WiFi hotspot (Nexus 5 here), NetworkManager tries to connect t...

Read more...

Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) wrote :
Download full text (20.4 KiB)

Hoorah!
I have been able to find a workaround by compliing the realtek drivers available here: http://drvbp1.linux-foundation.org/~mcgrof/rel-html/backports/ with:

make defconfig-rtlwifi
make
sudo make install

shutdown -r now

The rtl8723ae module is now loaded:
lsmod | grep -i rtl8723ae
rtl8723ae 155648 0
rtl8723_common 24576 1 rtl8723ae
btcoexist 57344 1 rtl8723ae
rtl_pci 40960 1 rtl8723ae
rtlwifi 106496 2 rtl_pci,rtl8723ae
compat 16384 5 cfg80211,mac80211,btcoexist,rtlwifi,rtl8723ae

modinfo rtl8723ae
filename: /lib/modules/4.2.0-16-generic/updates/drivers/net/wireless/rtlwifi/rtl8723ae/rtl8723ae.ko
version: backported from Linux (v4.2-rc1-0-gd770e55) using backports v4.2-rc1-1-0-g83a2518
firmware: rtlwifi/rtl8723efw.bin
description: Realtek 8723E 802.11n PCI wireless
license: GPL
author: Realtek WlanFAE <email address hidden>
author: lizhaoming <email address hidden>
srcversion: 964ADBC6D9D3E9FEC736FA8
alias: pci:v000010ECd00008723sv*sd*bc*sc*i*
depends: rtlwifi,rtl8723-common,rtl_pci,compat,btcoexist
vermagic: 4.2.0-16-generic SMP mod_unload modversions
parm: swenc:Set to 1 for software crypto (default 0)
 (bool)
parm: ips:Set to 0 to not use link power save (default 1)
 (bool)
parm: swlps:Set to 1 to use SW control power save (default 0)
 (bool)
parm: fwlps:Set to 1 to use FW control power save (default 1)
 (bool)
parm: debug:Set debug level (0-5) (default 0) (int)
parm: disable_watchdog:Set to 1 to disable the watchdog (default 0)
 (bool)

The UNCLAIMED network is gone:
lshw -C network
  *-network
       description: Wireless interface
       product: RTL8723AE PCIe Wireless Network Adapter
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:05:00.0
       logical name: wlan0
       version: 00
       serial: 24:0a:64:dd:b1:3c
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=rtl8723ae driverversion=4.2.0-16-generic firmware=N/A ip=192.168.43.11 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
       resources: irq:17 ioport:c000(size=256) memory:f7800000-f7803fff

Now connecting to Nexus 5 hotspot, from syslog:
Nov 2 12:00:33 msi-ge60-ubuntu NetworkManager[1185]: <info> keyfile: new connection /etc/NetworkManager/system-connections/Nexus 5 Hotspot (bf5dcf2b-a41f-4dee-b86b-47b8b3d8849a,"Nexus 5 Hotspot")
Nov 2 12:00:33 msi-ge60-ubuntu NetworkManager[1185]: <info> SCPlugin-Ofono: (36699040) ... get_connections.
Nov 2 12:00:33 msi-ge60-ubuntu NetworkManager[1185]: <info> SCPlugin-Ofono: (36699040) connections count: 0
Nov 2 12:00:33 msi-ge60-ubuntu NetworkManager[1185]: <info> get unmanaged devices count: 0
Nov 2 12:00:33 msi-ge60-ubuntu NetworkManager[1185]: <info> monitoring kernel firmware directory '/lib/firmware'.
Nov 2 12:00:33 msi-ge60-ubuntu NetworkManager[1185]: <info> monitoring ifupdown state file '/run/network/ifstate'.
Nov ...

Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) wrote :

Now the question remains: why do I need to manually install the Realtek drivers in Ubuntu Server 15.10 when it is not needed in Ubuntu Desktop 15.10?

summary: - [Ubuntu Server 15.04/15.10] Realtek RTL8723AE cannot connect to WPA2/AES
+ [Workaround] [Ubuntu Server 15.04/15.10] Realtek RTL8723AE cannot
+ connect to WPA2/AES
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.