Well, I feel bad for my mixup in my previous post and spent some time creating a step-by-step solution.. Please do read carefully and type (or even better copy/paste) the sed commands..
First, ensure you download the RTL8192CU driver from
here
Then, unzip that file, cd into the unziped folder and cd into the
driver directory (do not run install.sh)
You should have a tar.gz file in that directory
Code:
smokey@desk:~/Stuff/rtl8192cu/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver$ ls
rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911.tar.gz
Untar it and enter the newly created directory:
Code:
tar xf rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911.tar.gz
cd rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/
Please insure you are in the right location before running the following commands:
Code:
mv Makefile{,.orig}
sed -r 's/^EXTRA_CFLAGS \+= -O1/#EXTRA_CFLAGS +\= -O1/' Makefile.orig > Makefile
mv include/autoconf.h{,.orig}
sed -r -e 's:^#define CONFIG_DEBUG_RTL819X://#define CONFIG_DEBUG_RTL819X:' -e 's:^#define CONFIG_PROC_DEBUG\t*1://#define CONFIG_PROC_DEBUG 1:' -e 's:#define DBG_CONFIG_ERROR_DETECT://#define DBG_CONFIG_ERROR_DETECT:' include/autoconf.h.orig > include/autoconf.h
Now you need to build the driver...
Run
Code:
make -C /lib/modules/`uname -r`/build M=$PWD
and install it
Code:
sudo make -C /lib/modules/`uname -r`/build M=$PWD modules_install
//LE: Well, I haven't refreshed the page since I begup writing (parallel to testing this) and the OP managed to fix his problem but I'll just leave this here as an alternative way to quickly build the drivers..