RTL8192CU driver with Edimax EW7811Un

Hello,

We are currently trying to make a Wifi USB key (Edimax EW7811Un) working, but we have some issues.

This USB wifi key works with RTL8192CU driver, We added it in the kernel defconfig file, the driver was loaded but we can’t find any wifi network.

When we plug the USB key :

[   38.453736] usb 1-1.1: new high-speed USB device number 3 using ci_hdrc
[   38.651259] cfg80211: Calling CRDA to update world regulatory domain
[   38.730337] rtl8192cu: Chip version 0x10
[   38.827338] rtl8192cu: MAC address: 74:da:38:6a:e4:da
[   38.832428] rtl8192cu: Board Type 0
[   38.836605] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
[   38.842567] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
[   38.850178] usbcore: registered new interface driver rtl8192cu
[   38.862832] rtlwifi: wireless switch is on

After that we run

ifconfig wlan0 up
[   46.680949] rtl8192cu: MAC auto ON okay!
[   46.719251] rtl8192cu: Tx queue select: 0x05
[   47.113837] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

With ifconfig we can see wlan0

wlan0     Link encap:Ethernet  HWaddr 74:DA:38:6A:E4:DA  
          UP BROADCAST MULTICAST  MTU:1500  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:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

But the scan does not give any results

root@colibri-imx6:~# iwlist wlan0 scan
wlan0     No scan results

Have you ever encountered this issue?

Regards,

Pierre-Olivier

On our prebuild images we use connman as a default network manager, can you try configuring wifi n/w using connman as mentioned in this article ?

This is what I get:

root@colibri-imx6:~# connmanctl enable wifi
Enabled wifi
root@colibri-imx6:~# connmanctl scan wifi  
Error /net/connman/technology/wifi: Not supported

Another debug:

# connmanctl technologies
/net/connman/technology/wifi
  Name = WiFi
  Type = wifi
  Powered = True
  Connected = False
  Tethering = False

May i know which version of Linux is flashed on the module? Since Linux Image v2.5 Beta 3 we added support for LM006 WiFi module which also have RTL8192CU chipset and would work out-of-the-box.

The kernel version is 3.14.28-V2.5b2+g2d72e29, it is from the Toradex git. I added the CONFIG_RTL8192CU=m myself before my post. Maybe I need some librairies/application in my Yocto. I already added iw wpa-supplicant libnl dhcp-client wireless-tools

I found the solution, I need to compile another driver from a github source, externally. Now it works.

Please note that this older beta version is no longer supported and we recommend updating to our stable V2.6 BSP at your earliest convenience where this Wi-fi stick will anyway work out-of-the-box.