Bug 45241

Summary: Edimax EW-7811Un USB dongle won't connect to networks (rtl8192cu module)
Product: Networking Reporter: mikewhatever (mchl2005)
Component: WirelessAssignee: networking_wireless (networking_wireless)
Status: RESOLVED CODE_FIX    
Severity: normal CC: alan, kmeyer, Larry.Finger, linville
Priority: P1    
Hardware: All   
OS: Linux   
URL: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/852190
Kernel Version: all Subsystem:
Regression: No Bisected commit-id:
Bug Depends on:    
Bug Blocks: 97361    
Attachments: lspci
lsusb
dmesg
syslog-3.6.2-030602+swenc=1+debug=5
kernlog-3.6.2-030602-generic+swenc=1+debug=5
ubuntu13.04 syslog
Patch to fix association problems with in-kernel driver

Description mikewhatever 2012-07-28 06:23:25 UTC
Created attachment 76361 [details]
lspci

The above mentioned wireless device sees the networks around, but won't connect to any of them (either open or wpa/wpa2 protected). I've been tesing it with lots of kernel versions on Ubuntu (2.6.32, 2.6.38, 3.0.x, 3.2.x, 3.5.x), Open Suse 12.1 and Fedora 16 and 17, and the built in driver has never worked. The symptoms are always the same, the networks are visible, but it's won't connect to any of them.
Comment 1 mikewhatever 2012-07-28 06:24:03 UTC
Created attachment 76371 [details]
lsusb
Comment 2 mikewhatever 2012-07-28 06:25:03 UTC
Created attachment 76381 [details]
dmesg
Comment 3 Alan 2012-09-06 15:36:15 UTC
Can you try it with the module option swenc=1
Comment 4 mikewhatever 2012-09-07 20:01:23 UTC
Hi Alan, that option made no difference. It had been suggested in post #10 of the following forum thread:
http://ubuntuforums.org/showthread.php?t=1949810
Comment 5 mikewhatever 2012-09-15 08:39:51 UTC
I've reloaded the module with the debug=5 as well as swenc=1 options. The testing environment was Ubuntu 12.04.1 32bit, kernel 3.2-29-generic-pae. Hope that will provide some usefull info, here is the WifiSyslog: https://launchpadlibrarian.net/116025652/WifiSyslog.txt
Comment 6 mikewhatever 2012-10-13 06:09:04 UTC
Bug confirmed in the 3.6.2-030602-generic kernel from http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6.2-quantal/. Logs attached.
Comment 7 mikewhatever 2012-10-13 06:10:38 UTC
Created attachment 83171 [details]
syslog-3.6.2-030602+swenc=1+debug=5
Comment 8 mikewhatever 2012-10-13 06:12:36 UTC
Created attachment 83181 [details]
kernlog-3.6.2-030602-generic+swenc=1+debug=5
Comment 9 mikewhatever 2013-02-10 17:40:18 UTC
The bug has been confirmed on both 3.7 and 3.8 kernel versions. Also, the driver from realtek.com no longer builds on 3.8.0-5 in Ubuntu 13.04.
Comment 10 Klaus Meyer 2013-03-10 20:58:24 UTC
Bug confirmed in ubuntu 12.04 kernel 3.2.0-38-generic.
With the latest realtek source code everything is fine.
Comment 11 mikewhatever 2013-03-16 06:16:43 UTC
Created attachment 95491 [details]
ubuntu13.04 syslog

ubuntu13.04 syslog wpasupplicant -dd
Comment 12 mikewhatever 2013-03-16 06:17:35 UTC
Bug confirmed in Ubuntu 13.04, kernel 3.8.0-12-generic.
Comment 13 Larry Finger 2013-03-16 15:59:41 UTC
Created attachment 95561 [details]
Patch to fix association problems with in-kernel driver

This patch has been added to the latest version of the linux-wireless git tree.
Comment 14 mikewhatever 2013-08-25 07:20:14 UTC
The built in module works in Ubuntu 12.04 as of kernel 3.2.0-48-generic. The above mentioned patch must have been integrated. 
Thanks.