Saturday 1 June 2013

TL-WN821N with RTL8192CU for Fedora 18

Well I had a little bit of trouble with this wireless dongle on Fedora 18 but with the help of a few links all seems to have gone well. What I seemed to find out is the current default driver does not work so well and you need to get the driver source, blacklist the default drivers, compile the new drivers and install the module. Let me explain with a few easy steps...

  • Possibly you will need the kernel-source, kernel-headers and gc++ installed prior to the following instructions. 
  • Get the latest drivers from the following link, download the driver Linux Kernel 2.6.18~2.6.38 and kernel 3.0.8.
  • Blacklist some of the current rtl drivers, by adding the following to the /etc/modprobe.d/blacklist.conf 
    • blacklist rtl8192cu, 
    • blacklist rtl8192c_common, 
    • blacklist rtlwifi

  • Just doing an install.sh of the driver didn't quite cut it, I needed to apply a patch for it to compile, I used the 2 attachments found on this link from the user tim_philips.
  • I downloaded both attachments, potentially you need an account to download them but I am unsure.
  • put the download of the driver, the txt and sh file in the same folder.
  • Run run in terminal as root user: bash ./patch_rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105.sh
  • If you want to know what the script does, you can take a look, it just unzips a couple of things applies the patch and makes and installs the driver.
  • One other thing if yo update your kernel, chances are you need to redo all of this, doesn't take 2 minutes :-)
That should be everything. Hope this helps. Potentially you need a reboot just to remove the currently installed drivers or you can take a look for them using lsmod and doing an rmmod <with the module names that you added to the blacklist>

Here are some helpful links...