RTL8192cu is known to cause troubles with wifi for Linux users. The solution is to use original Realtek’s drivers but those are known to have issues with compilation on newer kernel versions (“some warnings being treated as errors” messages). Here is a quick guide how to compile the fixed RTL8192cu for new kernels.
With those instructions I successfully compiled RTL8192cu and got it working under kernel 3.13.02. Commenters and Reddit users reported that they got it working on various 3.x and 4.x kernels as well.
Other problems that this instruction solves:
- RTL8192cu Linux 3.1
- RTL8192cu Linux 4
- compiling RTL8192cu
- 0df6:0070 drivers
- rtl8192cu some warnings being treated as errors
You need to get a few things installed. Those are:
- kernel headers
- build tools (gcc, make, etc)
You can obtain them by executing following commands:
For Debian/Ubuntu (and other systems equipped with apt tool)
apt-get install --reinstall linux-headers-$(uname -r) linux-headers-generic build-essential dkms git
For Fedora (and other systems equipped with yum tool)
For Fedora versions from 23 up, use the following command (thanks to Paul Sand for informing me about that):
Obtain the fixed drivers:
If this repository is no longer available, leave me a comment. I will upload my backup of those drivers.
Build and install a DKMS module. Execute this command without leaving the current directory!
Block the native (and broken) drivers:
The last step is to execute following command and enjoy your working WLAN!
Learn more about Linux device drivers