Bug 46171

Summary: 0bda:8176 RTL8188CUS does not connect to wireless networks
Product: Drivers Reporter: Richard Riley Gress (searchfgold67899)
Component: network-wirelessAssignee: drivers_network-wireless (drivers_network-wireless)
Status: RESOLVED CODE_FIX    
Severity: high CC: alan, chris, florian, Larry.Finger, stalkerg
Priority: P1    
Hardware: All   
OS: Linux   
URL: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1030858
Kernel Version: 3.9-rc1 Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg output after connecting the USB wireless dongle.
specific dmesg output
specific syslog output
specific dmesg output after following instructions in comment #9
.config for 3.7-rc5 kernel
Patch to fix reassociation problems

Description Richard Riley Gress 2012-08-18 19:42:13 UTC
[1] Summary of Problem.
0bda:8176 RTL8188CUS does not connect to wireless networks
 
[2] Full description of the Problem.
The RTL8188CUS USB wireless card will not connect to wireless networks. The connection is attempted over and over again, and the password prompt reappears each time if the network has one, but a connection is never established.
There is a workaround for this bug: Drivers can be obtained from the Realtek website. But they are required in order for the hardware to function properly.

Additional info:
The AP (router model: Verizon VersaLink D90-327W15-06) is set up to accept 802.11b or 802.11g type connections based on the type of connection the wireless card is trying to establish. I have tested this on two different networks, one with no password protection, and one with WPA.
 
[3] Keywords. (I have no idea what these are so I did my best)
wireless, rtl8192CU, rtlwifi, rtl8192cu_common, RTL8188CUS, kernel, upstream
 
[4] Kernel version.
`cat /proc/version'
Linux version 3.6.0-030600rc1-generic (apw@gomeisa) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #201208022056 SMP Fri Aug 3 01:04:00 UTC 2012
 
[5] Not a kernel oops.
 
[6] Not applicable.
 
[7] Environment.
`lsb_release -rd'
Description:	Ubuntu 12.04 LTS
Release:	12.04
 
[7.1] Software.
`sh /usr/src/linux-headers-3.6.0-030600rc1/scripts/ver_linux'
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.
 
Linux richie-abacus 3.6.0-030600rc1-generic #201208022056 SMP Fri Aug 3 01:04:00 UTC 2012 i686 i686 i386 GNU/Linux
 
Gnu C                  4.6
Gnu make               3.81
binutils               2.22
util-linux             2.20.1
mount                  support
module-init-tools      3.16
e2fsprogs              1.42
Linux C Library        2.15
Dynamic linker (ldd)   2.15
Procps                 3.2.8
Net-tools              1.60
Kbd                    1.15.2
Sh-utils               8.13
wireless-tools         30
Modules Loaded         arc4 rtl8192cu rtl8192c_common rtlwifi mac80211 cfg80211 nls_iso8859_1 bnep rfcomm bluetooth dm_crypt snd_maestro3 snd_ac97_codec xircom_cb ac97_bus snd_pcm joydev snd_page_alloc snd_seq_midi ppdev snd_rawmidi snd_seq_midi_event snd_seq dell_laptop snd_timer snd_seq_device dcdbas snd psmouse pcmcia microcode serio_raw mac_hid i2c_piix4 yenta_socket soundcore pcmcia_rsrc shpchp pcmcia_core parport_pc lp parport video floppy usb_storage
 
[7.2] Processor information.
`cat /proc/cpuinfo'
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 8
model name	: Pentium III (Coppermine)
stepping	: 3
microcode	: 0x8
cpu MHz		: 647.188
cache size	: 256 KB
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 2
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pse36 mmx fxsr sse up
bogomips	: 1294.37
clflush size	: 32
cache_alignment	: 32
address sizes	: 36 bits physical, 32 bits virtual
power management:
 
[7.3] Module information.
`cat /proc/modules'
arc4 12509 2 - Live 0x00000000
rtl8192cu 67453 0 - Live 0x00000000
rtl8192c_common 47695 1 rtl8192cu, Live 0x00000000
rtlwifi 65237 1 rtl8192cu, Live 0x00000000
mac80211 480685 3 rtl8192cu,rtl8192c_common,rtlwifi, Live 0x00000000
cfg80211 185470 2 rtlwifi,mac80211, Live 0x00000000
nls_iso8859_1 12617 0 - Live 0x00000000
bnep 17850 2 - Live 0x00000000
rfcomm 38400 0 - Live 0x00000000
bluetooth 191687 8 bnep,rfcomm, Live 0x00000000
dm_crypt 22564 0 - Live 0x00000000
snd_maestro3 23086 2 - Live 0x00000000
snd_ac97_codec 106082 1 snd_maestro3, Live 0x00000000
xircom_cb 17393 0 - Live 0x00000000
ac97_bus 12670 1 snd_ac97_codec, Live 0x00000000
snd_pcm 81246 2 snd_maestro3,snd_ac97_codec, Live 0x00000000
joydev 17393 0 - Live 0x00000000
snd_page_alloc 14108 1 snd_pcm, Live 0x00000000
snd_seq_midi 13132 0 - Live 0x00000000
ppdev 12849 0 - Live 0x00000000
snd_rawmidi 25425 1 snd_seq_midi, Live 0x00000000
snd_seq_midi_event 14475 1 snd_seq_midi, Live 0x00000000
snd_seq 51568 2 snd_seq_midi,snd_seq_midi_event, Live 0x00000000
dell_laptop 17209 0 - Live 0x00000000
snd_timer 28931 2 snd_pcm,snd_seq, Live 0x00000000
snd_seq_device 14137 3 snd_seq_midi,snd_rawmidi,snd_seq, Live 0x00000000
dcdbas 14098 1 dell_laptop, Live 0x00000000
snd 62520 11 snd_maestro3,snd_ac97_codec,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device, Live 0x00000000
psmouse 77485 0 - Live 0x00000000
pcmcia 39819 0 - Live 0x00000000
microcode 18406 0 - Live 0x00000000
serio_raw 13031 0 - Live 0x00000000
mac_hid 13077 0 - Live 0x00000000
i2c_piix4 13264 0 - Live 0x00000000
yenta_socket 27464 0 - Live 0x00000000
soundcore 14635 1 snd, Live 0x00000000
pcmcia_rsrc 18367 1 yenta_socket, Live 0x00000000
shpchp 32325 0 - Live 0x00000000
pcmcia_core 21511 3 pcmcia,yenta_socket,pcmcia_rsrc, Live 0x00000000
parport_pc 32114 1 - Live 0x00000000
lp 17455 0 - Live 0x00000000
parport 40930 3 ppdev,parport_pc,lp, Live 0x00000000
video 18908 0 - Live 0x00000000
floppy 60213 0 - Live 0x00000000
usb_storage 39719 0 - Live 0x00000000
 
 
[7.4] Loaded driver and hardware information.
`cat /proc/ioports'
0000-001f : dma1
0020-0021 : pic1
0022-0022 : ACPI PM2_CNT_BLK
0040-0043 : timer0
0050-0053 : timer1
0060-0060 : keyboard
0064-0064 : keyboard
0070-0071 : rtc0
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : 0000:00:07.1
  0170-0177 : ata_piix
01f0-01f7 : 0000:00:07.1
  01f0-01f7 : ata_piix
0376-0376 : 0000:00:07.1
  0376-0376 : ata_piix
0378-037a : parport0
03f0-03f1 : pnp 00:09
03f2-03f2 : floppy
03f4-03f5 : floppy
03f6-03f6 : 0000:00:07.1
  03f6-03f6 : ata_piix
03f7-03f7 : floppy
03f8-03ff : serial
04d0-04d1 : pnp 00:02
0778-077a : parport0
0800-083f : 0000:00:07.3
  0800-0803 : ACPI PM1a_EVT_BLK
  0808-080b : ACPI PM_TMR
  080c-080f : ACPI GPE0_BLK
  0810-0815 : ACPI CPU throttle
0840-084f : 0000:00:07.3
  0840-084f : pnp 00:03
    0840-0847 : piix4_smbus
0850-0853 : pnp 00:03
0854-0855 : pnp 00:02
  0854-0855 : ACPI PM1a_CNT_BLK
0856-085f : pnp 00:03
0860-086f : 0000:00:07.1
  0860-086f : ata_piix
0a00-0a7f : pnp 00:03
0a80-0aff : pnp 00:03
0cf8-0cff : PCI conf1
1000-10ff : PCI CardBus 0000:02
  1000-107f : 0000:02:00.0
    1000-107f : xircom_cb
  1080-1087 : 0000:02:00.1
    1080-1087 : serial
1400-14ff : PCI CardBus 0000:02
1800-18ff : PCI CardBus 0000:06
1c00-1cff : PCI CardBus 0000:06
d800-d8ff : 0000:00:08.0
  d800-d8ff : Maestro3
dce0-dcff : 0000:00:07.2
  dce0-dcff : uhci_hcd
e000-efff : PCI Bus 0000:01
  ec00-ecff : 0000:01:00.0
f400-f4fe : pnp 00:04
 
 
 
 
`cat /proc/iomem'
 
00000000-0000ffff : reserved
00010000-0009fbff : System RAM
0009fc00-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000cffff : Video ROM
  000c0000-000cbfff : reserved
000f0000-000fffff : System ROM
00100000-0ffebfff : System RAM
  01000000-015e9860 : Kernel code
  015e9861-018d763f : Kernel data
  0199c000-01a74fff : Kernel bss
0ffec000-0ffeffff : reserved
0fff0000-0fffffff : RAM buffer
100a0000-100fffff : reserved
10100000-101fffff : PCI Bus 0000:01
  10100000-1011ffff : 0000:01:00.0
14000000-14000fff : 0000:00:03.0
  14000000-14000fff : yenta_socket
18000000-1bffffff : PCI CardBus 0000:02
  18000000-18003fff : 0000:02:00.0
  18004000-18007fff : 0000:02:00.1
1c000000-1fffffff : PCI CardBus 0000:02
  1c000000-1c0007ff : 0000:02:00.0
    1c000000-1c0007ff : xircom_cb
  1c000800-1c000fff : 0000:02:00.0
    1c000800-1c000fff : xircom_cb
  1c001000-1c0017ff : 0000:02:00.1
  1c001800-1c001fff : 0000:02:00.1
20000000-20000fff : 0000:00:03.1
  20000000-20000fff : yenta_socket
24000000-27ffffff : PCI CardBus 0000:06
28000000-2bffffff : PCI CardBus 0000:06
ed000000-edffffff : pnp 00:04
f4000000-f7ffffff : 0000:00:00.0
faffe000-faffffff : 0000:00:08.0
  faffe000-faffffff : Maestro3
fc000000-feffffff : PCI Bus 0000:01
  fcfff000-fcffffff : 0000:01:00.0
  fd000000-fdffffff : 0000:01:00.0
ffe00000-ffffffff : reserved
  ffe00000-ffffffff : pnp 00:00
 
 
[7.5] PCI information.
`sudo lspci -vvv'
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
	Latency: 32
	Region 0: Memory at f4000000 (32-bit, prefetchable) [size=64M]
	Capabilities: [a0] AGP version 1.0
		Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW- AGP3- Rate=x1,x2
		Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none>
	Kernel driver in use: agpgart-intel
 
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap- 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 32
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
	I/O behind bridge: 0000e000-0000efff
	Memory behind bridge: fc000000-feffffff
	Prefetchable memory behind bridge: 10100000-101fffff
	Secondary status: 66MHz+ FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA+ VGA+ MAbort- >Reset- FastB2B+
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Kernel modules: shpchp
 
00:03.0 CardBus bridge: Texas Instruments PCI1225 (rev 01)
	Subsystem: Dell Device 00bb
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 168, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at 14000000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=00, secondary=02, subordinate=05, sec-latency=176
	Memory window 0: 18000000-1bfff000 (prefetchable)
	Memory window 1: 1c000000-1ffff000
	I/O window 0: 00001000-000010ff
	I/O window 1: 00001400-000014ff
	BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt- PostWrite+
	16-bit legacy interface ports at 0001
	Kernel driver in use: yenta_cardbus
	Kernel modules: yenta_socket
 
00:03.1 CardBus bridge: Texas Instruments PCI1225 (rev 01)
	Subsystem: Dell Device 00bb
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 168, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at 20000000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=00, secondary=06, subordinate=09, sec-latency=176
	Memory window 0: 24000000-27fff000 (prefetchable)
	Memory window 1: 28000000-2bfff000
	I/O window 0: 00001800-000018ff
	I/O window 1: 00001c00-00001cff
	BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt+ PostWrite+
	16-bit legacy interface ports at 0001
	Kernel driver in use: yenta_cardbus
	Kernel modules: yenta_socket
 
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
	Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
 
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01) (prog-if 80 [Master])
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 32
	Region 0: [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
	Region 1: [virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
	Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
	Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
	Region 4: I/O ports at 0860 [size=16]
	Kernel driver in use: ata_piix
 
00:07.2 USB controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 32
	Interrupt: pin D routed to IRQ 11
	Region 4: I/O ports at dce0 [size=32]
	Kernel driver in use: uhci_hcd
 
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
	Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Interrupt: pin ? routed to IRQ 9
	Kernel driver in use: piix4_smbus
	Kernel modules: i2c-piix4
 
00:08.0 Multimedia audio controller: ESS Technology ES1983S Maestro-3i PCI Audio Accelerator (rev 10)
	Subsystem: Dell Device 00bb
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 32 (500ns min, 6000ns max)
	Interrupt: pin A routed to IRQ 5
	Region 0: I/O ports at d800 [size=256]
	Region 1: Memory at faffe000 (32-bit, non-prefetchable) [size=8K]
	Capabilities: [c0] Power Management version 2
		Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: snd_maestro3
	Kernel modules: snd-maestro3
 
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Rage Mobility P/M AGP 2x (rev 64) (prog-if 00 [VGA controller])
	Subsystem: Dell Latitude CPx
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 32 (2000ns min), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
	Region 1: I/O ports at ec00 [size=256]
	Region 2: Memory at fcfff000 (32-bit, non-prefetchable) [size=4K]
	[virtual] Expansion ROM at 10100000 [disabled] [size=128K]
	Capabilities: [50] AGP version 1.0
		Status: RQ=256 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW- AGP3- Rate=x1,x2
		Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none>
	Capabilities: [5c] Power Management version 1
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Kernel modules: atyfb
 
02:00.0 Ethernet controller: Xircom Cardbus Ethernet 10/100 (rev 03)
	Subsystem: Xircom Cardbus Ethernet 10/100
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64 (5000ns min, 10000ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 11
	Region 0: I/O ports at 1000 [size=128]
	Region 1: Memory at 1c000000 (32-bit, non-prefetchable) [size=2K]
	Region 2: Memory at 1c000800 (32-bit, non-prefetchable) [size=2K]
	[virtual] Expansion ROM at 18000000 [disabled] [size=16K]
	Capabilities: [dc] Power Management version 1
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=2 PME-
	Kernel driver in use: xircom_cb
	Kernel modules: xircom_cb
 
02:00.1 Serial controller: Xircom Cardbus Ethernet + 56k Modem (rev 03) (prog-if 02 [16550])
	Subsystem: Xircom CBEM56G-100 Ethernet + 56k Modem
	Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Interrupt: pin A routed to IRQ 11
	Region 0: I/O ports at 1080 [size=8]
	Region 1: Memory at 1c001000 (32-bit, non-prefetchable) [size=2K]
	Region 2: Memory at 1c001800 (32-bit, non-prefetchable) [size=2K]
	[virtual] Expansion ROM at 18004000 [disabled] [size=16K]
	Capabilities: [dc] Power Management version 1
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=2 PME-
	Kernel driver in use: serial
 
 
[7.6] SCSI information.
`cat /proc/scsi/scsi'
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: FUJITSU MHK2120A Rev: D834
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: SAMSUNG  Model: CD-ROM SN-124    Rev: S004
  Type:   CD-ROM                           ANSI  SCSI revision: 05
 
 
[7.7] '/proc' contents.
`ls /proc'
1     1161  19     370  8       buddyinfo    key-users      softirqs
10    1167  2      38   815     bus          kmsg           stat
1065  1170  20     39   816     cgroups      kpagecount     swaps
1092  1171  21     41   854     cmdline      kpageflags     sys
1095  1175  22     42   889     consoles     latency_stats  sysrq-trigger
1096  1178  23     5    893     cpuinfo      loadavg        sysvipc
11    1179  23554  504  894     crypto       locks          timer_list
1101  12    23567  517  9       devices      mdstat         timer_stats
1107  123   23589  526  907     diskstats    meminfo        tty
1110  1298  23593  606  928     dma          misc           uptime
1111  13    23601  61   936     driver       modules        version
1114  1355  237    62   941     execdomains  mounts         vmallocinfo
1116  14    238    63   942     fb           mtrr           vmstat
1118  1493  24     64   943     filesystems  net            zoneinfo
1123  1494  25     697  949     fs           pagetypeinfo
1132  1495  258    7    955     interrupts   partitions
1134  15    26     772  980     iomem        sched_debug
1138  16    27     777  984     ioports      schedstat
1140  17    3      791  990     irq          scsi
1143  1710  339    793  acpi    kallsyms     self
1144  1726  36     798  asound  kcore        slabinfo
Comment 1 Chris Peñalver 2012-11-07 16:18:21 UTC
As per larry Finger, this should be assigned to him https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1030858/comments/45 . However, when I attempt to do so:
>"You tried to change the Assignee field from
>drivers_network-wireless@kernel-bugs.osdl.org to Larry.Finger@lwfinger.net ,
>but only the assignee of the bug, or a user with the required permissions may
>change that field."
Comment 2 Richard Riley Gress 2012-11-07 16:26:15 UTC
That's the same error I get.
Comment 3 Larry Finger 2012-11-07 17:44:16 UTC
Please post the appropriate section from the dmesg output where it is trying to connect. In addition, if you use NetworkManager, please post the part of the of the NetworkManager log for a connection try.

Does md5sum yield 943e9b714a926e630b8152d7aad91d2e for /lib/firmware/rtlwifi/rtl8192cufw.bin?
Comment 4 Richard Riley Gress 2012-11-08 20:38:12 UTC
Created attachment 85981 [details]
dmesg output after connecting the USB wireless dongle.
Comment 5 Richard Riley Gress 2012-11-08 21:00:22 UTC
Created attachment 85991 [details]
specific dmesg output
Comment 6 Richard Riley Gress 2012-11-08 21:00:47 UTC
Created attachment 86001 [details]
specific syslog output
Comment 7 Richard Riley Gress 2012-11-08 21:02:35 UTC
943e9b714a926e630b8152d7aad91d2e  /lib/firmware/rtlwifi/rtl8192cufw.bin
See 2 new attachments.
Comment 8 Richard Riley Gress 2012-11-08 21:02:55 UTC
(In reply to comment #3)
> Please post the appropriate section from the dmesg output where it is trying
> to
> connect. In addition, if you use NetworkManager, please post the part of the
> of
> the NetworkManager log for a connection try.
> 
> Does md5sum yield 943e9b714a926e630b8152d7aad91d2e for
> /lib/firmware/rtlwifi/rtl8192cufw.bin?

943e9b714a926e630b8152d7aad91d2e  /lib/firmware/rtlwifi/rtl8192cufw.bin
See 2 new attachments.
Comment 9 Larry Finger 2012-11-08 21:05:54 UTC
This section of the dmesg output looks strange:

[10930.963495] rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
[10930.963502] cfg80211: Updating information on frequency 2412 MHz for a 20 MHz width channel with regulatory rule:
[10930.963505] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[10930.963508] cfg80211: Updating information on frequency 2417 MHz for a 20 MHz width channel with regulatory rule:
[10930.963511] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[10930.963513] cfg80211: Updating information on frequency 2422 MHz for a 20 MHz width channel with regulatory rule:
[10930.963516] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[10930.963518] cfg80211: Updating information on frequency 2427 MHz for a 20 MHz width channel with regulatory rule:
[10930.963520] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[10930.963523] cfg80211: Updating information on frequency 2432 MHz for a 20 MHz width channel with regulatory rule:
[10930.963525] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[10930.963528] cfg80211: Updating information on frequency 2437 MHz for a 20 MHz width channel with regulatory rule:
[10930.963530] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[10930.963532] cfg80211: Updating information on frequency 2442 MHz for a 20 MHz width channel with regulatory rule:
[10930.963535] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[10930.963537] cfg80211: Updating information on frequency 2447 MHz for a 20 MHz width channel with regulatory rule:
[10930.963540] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[10930.963542] cfg80211: Updating information on frequency 2452 MHz for a 20 MHz width channel with regulatory rule:
[10930.963544] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[10930.963547] cfg80211: Updating information on frequency 2457 MHz for a 20 MHz width channel with regulatory rule:
[10930.963549] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[10930.963551] cfg80211: Updating information on frequency 2462 MHz for a 20 MHz width channel with regulatory rule:
[10930.963554] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[10930.963556] cfg80211: Disabling freq 2467 MHz as custom regd has no rule that fits a 20 MHz wide channel
[10930.963559] cfg80211: Disabling freq 2472 MHz as custom regd has no rule that fits a 20 MHz wide channel
[10930.963561] cfg80211: Disabling freq 2484 MHz as custom regd has no rule that fits a 20 MHz wide channel
[10930.963610] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
[10931.038857] cfg80211: Ignoring regulatory request Set by core since the driver uses its own custom regulatory domain
[10931.206262] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'

On my system, I get:

[534899.410969] cfg80211: Calling CRDA for country: US
[534899.441607] cfg80211: Regulatory domain changed to country: US
[534899.441623] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[534899.441630] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[534899.441637] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[534899.441643] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[534899.441649] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[534899.441655] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[534899.441661] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[534899.491797] rtl8192cu: Chip version 0x10
[534899.913416] rtl8192cu: MAC address: 00:1f:1f:c8:8e:cb
[534899.913425] rtl8192cu: Board Type 0
[534899.914152] rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
[534899.914460] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
[534899.915811] usbcore: registered new interface driver rtl8192cu
[534899.941084] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
[534899.957180] rtlwifi: wireless switch is on
[534900.331887] rtl8192cu: MAC auto ON okay!
[534900.530637] rtl8192cu: Tx queue select: 0x05
[534901.107894] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[534922.400718] wlan1: authenticate with c0:3f:0e:be:2b:44
[534922.521494] wlan1: send auth to c0:3f:0e:be:2b:44 (try 1/3)
[534922.543462] wlan1: authenticated
[534922.548535] wlan1: associate with c0:3f:0e:be:2b:44 (try 1/3)
[534922.559324] wlan1: RX AssocResp from c0:3f:0e:be:2b:44 (capab=0x411 status=0 aid=4)
[534922.562503] wlan1: associated
[534922.565119] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready

Your regulatory rules are all messed up. Wireless cannot use any 20 MHz channels, and I bet that you need them.

Install the crda package for your distro and create the file /etc/modprobe.d/50-chg80211.conf with a single line that says

options cfg80211 ieee80211_regdom=XX

where XX is your country code (I use US).
Comment 10 Richard Riley Gress 2012-11-08 21:25:36 UTC
(In reply to comment #9)
> This section of the dmesg output looks strange:
> 
> [10930.963495] rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
> [10930.963502] cfg80211: Updating information on frequency 2412 MHz for a 20
> MHz width channel with regulatory rule:
> [10930.963505] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi,
> 2000
> mBm)
> [10930.963508] cfg80211: Updating information on frequency 2417 MHz for a 20
> MHz width channel with regulatory rule:
> [10930.963511] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi,
> 2000
> mBm)
> [10930.963513] cfg80211: Updating information on frequency 2422 MHz for a 20
> MHz width channel with regulatory rule:
> [10930.963516] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi,
> 2000
> mBm)
> [10930.963518] cfg80211: Updating information on frequency 2427 MHz for a 20
> MHz width channel with regulatory rule:
> [10930.963520] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi,
> 2000
> mBm)
> [10930.963523] cfg80211: Updating information on frequency 2432 MHz for a 20
> MHz width channel with regulatory rule:
> [10930.963525] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi,
> 2000
> mBm)
> [10930.963528] cfg80211: Updating information on frequency 2437 MHz for a 20
> MHz width channel with regulatory rule:
> [10930.963530] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi,
> 2000
> mBm)
> [10930.963532] cfg80211: Updating information on frequency 2442 MHz for a 20
> MHz width channel with regulatory rule:
> [10930.963535] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi,
> 2000
> mBm)
> [10930.963537] cfg80211: Updating information on frequency 2447 MHz for a 20
> MHz width channel with regulatory rule:
> [10930.963540] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi,
> 2000
> mBm)
> [10930.963542] cfg80211: Updating information on frequency 2452 MHz for a 20
> MHz width channel with regulatory rule:
> [10930.963544] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi,
> 2000
> mBm)
> [10930.963547] cfg80211: Updating information on frequency 2457 MHz for a 20
> MHz width channel with regulatory rule:
> [10930.963549] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi,
> 2000
> mBm)
> [10930.963551] cfg80211: Updating information on frequency 2462 MHz for a 20
> MHz width channel with regulatory rule:
> [10930.963554] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi,
> 2000
> mBm)
> [10930.963556] cfg80211: Disabling freq 2467 MHz as custom regd has no rule
> that fits a 20 MHz wide channel
> [10930.963559] cfg80211: Disabling freq 2472 MHz as custom regd has no rule
> that fits a 20 MHz wide channel
> [10930.963561] cfg80211: Disabling freq 2484 MHz as custom regd has no rule
> that fits a 20 MHz wide channel
> [10930.963610] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
> [10931.038857] cfg80211: Ignoring regulatory request Set by core since the
> driver uses its own custom regulatory domain
> [10931.206262] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
> 
> On my system, I get:
> 
> [534899.410969] cfg80211: Calling CRDA for country: US
> [534899.441607] cfg80211: Regulatory domain changed to country: US
> [534899.441623] cfg80211:   (start_freq - end_freq @ bandwidth),
> (max_antenna_gain, max_eirp)
> [534899.441630] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300
> mBi,
> 2700 mBm)
> [534899.441637] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300
> mBi,
> 1700 mBm)
> [534899.441643] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300
> mBi,
> 2000 mBm)
> [534899.441649] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300
> mBi,
> 2000 mBm)
> [534899.441655] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300
> mBi,
> 2000 mBm)
> [534899.441661] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300
> mBi,
> 3000 mBm)
> [534899.491797] rtl8192cu: Chip version 0x10
> [534899.913416] rtl8192cu: MAC address: 00:1f:1f:c8:8e:cb
> [534899.913425] rtl8192cu: Board Type 0
> [534899.914152] rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
> [534899.914460] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
> [534899.915811] usbcore: registered new interface driver rtl8192cu
> [534899.941084] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
> [534899.957180] rtlwifi: wireless switch is on
> [534900.331887] rtl8192cu: MAC auto ON okay!
> [534900.530637] rtl8192cu: Tx queue select: 0x05
> [534901.107894] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
> [534922.400718] wlan1: authenticate with c0:3f:0e:be:2b:44
> [534922.521494] wlan1: send auth to c0:3f:0e:be:2b:44 (try 1/3)
> [534922.543462] wlan1: authenticated
> [534922.548535] wlan1: associate with c0:3f:0e:be:2b:44 (try 1/3)
> [534922.559324] wlan1: RX AssocResp from c0:3f:0e:be:2b:44 (capab=0x411
> status=0 aid=4)
> [534922.562503] wlan1: associated
> [534922.565119] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
> 
> Your regulatory rules are all messed up. Wireless cannot use any 20 MHz
> channels, and I bet that you need them.
> 
> Install the crda package for your distro and create the file
> /etc/modprobe.d/50-chg80211.conf with a single line that says
> 
> options cfg80211 ieee80211_regdom=XX
> 
> where XX is your country code (I use US).

Thank you for providing a hypothesis, but after following the instructions the problem exists.
Comment 11 Larry Finger 2012-11-08 21:39:40 UTC
Does cfg80211 still complain?
Comment 12 Richard Riley Gress 2012-11-08 21:48:07 UTC
(In reply to comment #11)
> Does cfg80211 still complain?

It does: http://paste.ubuntu.com/1343734
Comment 13 Richard Riley Gress 2012-11-08 21:49:29 UTC
Created attachment 86011 [details]
specific dmesg output after following instructions in comment #9
Comment 14 Larry Finger 2012-11-08 22:05:07 UTC
It looks to me as if cfg80211 or crda is messed up. You still get those messages saying that 20 MHz channels are forbidden.

Can you implement compat-wireless? That will provide a new version of cfg80211.
Comment 15 Richard Riley Gress 2012-11-09 01:09:11 UTC
I got compat-wireless, version 3.6.6-1-snp from http://linuxwireless.org/en/users/Download/stable/#Recommended and compiled the thing. Ubuntu system.
Same problem, it looks like, however... this is what happens when I start up with it plugged in,

http://paste.ubuntu.com/1343884

and this is what happens when I plug it in while started:
http://paste.ubuntu.com/1343891
Comment 16 Larry Finger 2012-11-09 16:59:41 UTC
Did you build this kernel yourself, or is it one supplied by Ubuntu?

In either case, what is the state of CFG80211_INTERNAL_REGDB in the configuration? On my system, it is not set.
Comment 17 Richard Riley Gress 2012-11-09 21:47:52 UTC
This is an official Ubuntu kernel, from http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6.3-quantal/ , I am going to test 3.7.0-rc4 as soon as I can. (dern graphics drivers...)

'echo $CFG80211_INTERNAL_REGDB' returns nothing.
Comment 18 Larry Finger 2012-11-09 23:45:42 UTC
That command would not return anything. The kernel configuration options are not in the environment. Try

zcat /proc/config.gz | grep CFG80111_INTERNAL_REGDB


I don't know how Ubuntu configures their kernels, and the command might not work.
Comment 19 Richard Riley Gress 2012-11-10 03:01:59 UTC
Line 1423 of /boot/config-3.6.3-030603-generic:
# CONFIG_CFG80211_INTERNAL_REGDB is not set
Comment 20 Chris Peñalver 2012-11-11 17:02:16 UTC
(In reply to comment #16)
> Did you build this kernel yourself, or is it one supplied by Ubuntu?
> 
> In either case, what is the state of CFG80211_INTERNAL_REGDB in the
> configuration? On my system, it is not set.

Larry Finger, thank you for reviewing this report. As I have been helping Richard Riley Gress through the downstream triage process, I just wanted to briefly interject about his comment:
(In reply to comment #17)
> This is an official Ubuntu kernel, from
> http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6.3-quantal/

This is not an official Ubuntu kernel. It is a unmodified mainline (upstream) kernel. For more on this please see https://wiki.ubuntu.com/Kernel/MainlineBuilds .

Thank you for your understanding.
Comment 21 Richard Riley Gress 2012-11-11 18:40:33 UTC
(In reply to comment #20)
> (In reply to comment #16)
> > Did you build this kernel yourself, or is it one supplied by Ubuntu?
> > 
> > In either case, what is the state of CFG80211_INTERNAL_REGDB in the
> > configuration? On my system, it is not set.
> 
> Larry Finger, thank you for reviewing this report. As I have been helping
> Richard Riley Gress through the downstream triage process, I just wanted to
> briefly interject about his comment:
> (In reply to comment #17)
> > This is an official Ubuntu kernel, from
> > http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6.3-quantal/
> 
> This is not an official Ubuntu kernel. It is a unmodified mainline (upstream)
> kernel. For more on this please see
> https://wiki.ubuntu.com/Kernel/MainlineBuilds .
> 
> Thank you for your understanding.

Christopher M. Penalver,
Thank you for pointing this out. My apologies for using the incorrect terminology here.
Comment 22 Larry Finger 2012-11-11 22:54:09 UTC
Please post your .config so that I can check your configuration.
Comment 23 Richard Riley Gress 2012-11-11 23:26:25 UTC
Created attachment 86111 [details]
.config for 3.7-rc5 kernel
Comment 24 Richard Riley Gress 2012-11-11 23:27:07 UTC
.config file attached.
Comment 25 Larry Finger 2012-11-13 20:51:14 UTC
The inability to set 20 MHz channels is fixed by changing the value of the configuration variable CONFIG_CFG80211_REG_DEBUG from Y to "not set".

The failure when that variable is set is certainly a bug, but it is not in rtl8192cu, but likely in cfg80211. It would have shown up for any wireless driver that uses mac80211. I will pursue that issue and submit the necessary patch.
Comment 26 Zhuravlev Uriy 2012-12-01 12:26:35 UTC
Hello. 
I have the same problem. I have:
  20f4: 648b TRENDnet TEW-648UBM 802.11n 150Mbps Micro Wireless N Adapter [Realtek RTL8188CUS]

All networks visible, the association with the point of going on but no packets received.
Here is the log with the modprobe rtl8192cu debug = 4 and perform the following commands:
ifconfig wlan0 up
iwconfig wlan0 essid nya # (open network)
dhclient wlan0

My uname: Linux sagita 3.6.2-gentoo # 2 SMP PREEMPT Sun Nov 11 01:51:17 MSK 2012 x86_64 AMD FX (tm) -8120 Eight-Core Processor AuthenticAMD GNU / Linux
Log link: http://pastebin.com/M2iZimGw

PS CONFIG_CFG80211_REG_DEBUG is not set :)
Comment 27 Richard Riley Gress 2012-12-02 23:34:24 UTC
(In reply to comment #26)
> Hello. 
> I have the same problem. I have:
>   20f4: 648b TRENDnet TEW-648UBM 802.11n 150Mbps Micro Wireless N Adapter
> [Realtek RTL8188CUS]
> 
> All networks visible, the association with the point of going on but no
> packets
> received.
> Here is the log with the modprobe rtl8192cu debug = 4 and perform the
> following
> commands:
> ifconfig wlan0 up
> iwconfig wlan0 essid nya # (open network)
> dhclient wlan0
> 
> My uname: Linux sagita 3.6.2-gentoo # 2 SMP PREEMPT Sun Nov 11 01:51:17 MSK
> 2012 x86_64 AMD FX (tm) -8120 Eight-Core Processor AuthenticAMD GNU / Linux
> Log link: http://pastebin.com/M2iZimGw
> 
> PS CONFIG_CFG80211_REG_DEBUG is not set :)

Zhuravlev Uriy,
If you have the issue described in this bug, you can mark that it affects you in Launchpad: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1030858/+affectsmetoo
Comment 28 Richard Riley Gress 2013-01-11 00:29:23 UTC
HALLELUAH!! 'Tis resolved.
Comment 29 Richard Riley Gress 2013-01-11 04:32:56 UTC
Never mind; bug is not actually fixed. rtlwifi and accompanying modules were loaded, and web data could be downloaded, at least on the first reboot after installing 3.8-rc3. On the second, third, and fourth reboots, the same behavior as before was present.
Comment 30 Larry Finger 2013-03-12 21:20:32 UTC
Created attachment 95241 [details]
Patch to fix reassociation problems

The patch fixes a problem that prevented the driver from reconnecting after disconnecting.
Comment 31 Florian Mickler 2013-03-24 12:04:49 UTC
A patch referencing this bug report has been merged in Linux v3.9-rc4:

commit 9437a248e7cac427c898bdb11bd1ac6844a1ead4
Author: Larry Finger <Larry.Finger@lwfinger.net>
Date:   Wed Mar 13 10:28:13 2013 -0500

    rtlwifi: rtl8192cu: Fix problem that prevents reassociation