Errors installing wireless driver

Solution 1:

I got this working on Ubuntu 14.04.1 (Kernel 3.13.0-35-generic), which seems to be similar to what you are running.

You will need to make some minor modifications to the driver source files. That means you cannot use the install.sh script as that will always unzip the driver ZIP and overwrite whatever changes you make.

Run these commands as root

Go to the driver directory driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911

# cd driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911

Change the Makefile and include/autoconf.h according to the following diffs (essentially comment out the lines with EXTRA_CFLAGS / CONFIG_DEBUG_RTL819X / CONFIG_PROC_DEBUG / DBG_CONFIG_ERROR_DETECT)

diff -pru rtl8192cu/Makefile rtl8192cu.new/Makefile
--- rtl8192cu/Makefile  2013-09-11 05:56:55.000000000 +0200
+++ rtl8192cu.new/Makefile      2013-12-06 16:09:37.000000000 +0100
@@ -1,5 +1,5 @@
 EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS)
-EXTRA_CFLAGS += -O1
+#EXTRA_CFLAGS += -O1
 #EXTRA_CFLAGS += -O3
 #EXTRA_CFLAGS += -Wall
 #EXTRA_CFLAGS += -Wextra

and

diff -pru rtl8192cu/include/autoconf.h rtl8192cu.new/include/autoconf.h
--- rtl8192cu/include/autoconf.h        2013-09-11 05:56:55.000000000 +0200
+++ rtl8192cu.new/include/autoconf.h    2013-12-06 16:09:37.000000000 +0100
@@ -296,9 +296,9 @@
 //#define CONFIG_DEBUG_RTL871X

 #define DBG    0
-#define CONFIG_DEBUG_RTL819X
+//#define CONFIG_DEBUG_RTL819X

-#define CONFIG_PROC_DEBUG      1
+//#define CONFIG_PROC_DEBUG    1

 //#define DBG_IO
 //#define DBG_DELAY_OS
@@ -324,7 +324,7 @@

 //#define DBG_MEMORY_LEAK      1

-#define DBG_CONFIG_ERROR_DETECT
+//#define DBG_CONFIG_ERROR_DETECT
 //#define DBG_CONFIG_ERROR_RESET

 //TX use 1 urb

Now run:

# make

and

# make install

This will install a module called 8192cu. Make sure you blacklist the default drivers that ship with the kernel:

Add this to /etc/modprobe.d/modprobe.conf (or create a /etc/modprobe.d/blacklist-8192cu.conf file)

blacklist rtl8192cu
blacklist rtl8192c_common
blacklist rtlwifi

Got this working thanks to the post of guanx here.