Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install the Linux drivers for a D-Link DWA-121 USB wireless adapter, found here:

I'm following the included instructions for Terminal. When I get to the Make command, I get error messages returned, and I can't proceed any further.

Have I missed something here? I'm fairly new to linux. Could the drivers not be compatible? I'm running 12.10 32-bit. Thanks!

These are the instructions for the linux drivers:

  1. tar zxvf rtl8192CU_linux_v2.0.1406.20110309.tar.gz
  2. cd rtl8192CU_linux_v2.0.1406.20110309
  3. make
  4. su
  5. make install
  6. reboot

Below is what is returned:

make ARCH=i386 CROSS_COMPILE= -C /lib/modules/3.5.0-19-generic/build M=/home/matt/Downloads/dwa121_linux_driver_20140620110309/rtl8192CU_linux_v2.0.1406.20110309  modules
make[1]: Entering directory `/usr/src/linux-headers-3.5.0-19-generic'
  CC [M]  /home/matt/Downloads/dwa121_linux_driver_20140620110309/rtl8192CU_linux_v2.0.1406.20110309/core/rtw_cmd.o
In file included from /home/matt/Downloads/dwa121_linux_driver_20140620110309/rtl8192CU_linux_v2.0.1406.20110309/include/drv_types.h:80:0,
                 from /home/matt/Downloads/dwa121_linux_driver_20140620110309/rtl8192CU_linux_v2.0.1406.20110309/core/rtw_cmd.c:24:
/home/matt/Downloads/dwa121_linux_driver_20140620110309/rtl8192CU_linux_v2.0.1406.20110309/include/rtw_xmit.h:353:24: error: field ‘xmit_tasklet’ has incomplete type
In file included from /home/matt/Downloads/dwa121_linux_driver_20140620110309/rtl8192CU_linux_v2.0.1406.20110309/include/drv_types.h:81:0,
                 from /home/matt/Downloads/dwa121_linux_driver_20140620110309/rtl8192CU_linux_v2.0.1406.20110309/core/rtw_cmd.c:24:
/home/matt/Downloads/dwa121_linux_driver_20140620110309/rtl8192CU_linux_v2.0.1406.20110309/include/rtw_recv.h:217:24: error: field ‘recv_tasklet’ has incomplete type
In file included from /home/matt/Downloads/dwa121_linux_driver_20140620110309/rtl8192CU_linux_v2.0.1406.20110309/include/drv_types.h:86:0,
                 from /home/matt/Downloads/dwa121_linux_driver_20140620110309/rtl8192CU_linux_v2.0.1406.20110309/core/rtw_cmd.c:24:
/home/matt/Downloads/dwa121_linux_driver_20140620110309/rtl8192CU_linux_v2.0.1406.20110309/include/rtw_io.h:35:28: fatal error: linux/smp_lock.h: No such file or directory
compilation terminated.
make[2]: *** [/home/matt/Downloads/dwa121_linux_driver_20140620110309/rtl8192CU_linux_v2.0.1406.20110309/core/rtw_cmd.o] Error 1
make[1]: *** [_module_/home/matt/Downloads/dwa121_linux_driver_20140620110309/rtl8192CU_linux_v2.0.1406.20110309] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-19-generic'
make: *** [modules] Error 2
share|improve this question
I'm sure the driver is not compatible; that is, too old. The readme.txt says it supports OS and kernel version : LINUX (kernel 2.6.18 ~ 2.6.37). You kernel in 12.10 is 3.5.0-xx, much more recent. Isn't rtl8192cu included in 12.10? Doesn't it work for you? – chili555 Dec 10 '12 at 21:17
@chili555 Apparently not. Ubuntu does not recognize that a wireless device is present. – Red V Dec 10 '12 at 22:27
Please post: lsusb – chili555 Dec 10 '12 at 22:50
Never mind. Got it to work on 12.04. I decided to try installing over 12.10 (it was a fresh install anyways) with the LTS, and lo and behold, the wireless adapter was recognized instantly after installation had completed. I'll just stick with the LTS. Thanks! – Red V Dec 12 '12 at 21:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.