@user183351's answer helped me along the correct path, but there were some pieces missing. So I am providing this complete list of instructions, assuming you are starting from a brand-new Ubuntu 12.04 LTS installation having made no other modifications. This is for kernel version 3.8.0-30-generic:
Note that in order to complete this installation, you will need to install some packages and download the driver files. In order to do this, connect the laptop to the Internet via a network cable.
1) Open a terminal session
CTRLALTT
2) Become root
sudo su -
3) Download the drivers for your WiFi card and save them to your hard drive. I'll assume you save the file to ~/Downloads/realtek
. Yoou want the entry labeled "Linux driver for kernel 2.6.24 (and later)"
http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true
4) Unpack the file
root@oort:/home/john/Downloads/realtek# tar -jxvf linux_mac80211_0012.0207.2013.tar.bz2
root@oort:/home/john/Downloads/realtek# mv rtl_92ce_92se_92de_8723ae_88ee_linux_mac80211_0012.0207.2013/ driver
5) cd to the directory where you unpacked the files
cd driver
6) install needed packages
apt-get install gcc build-essential linux-headers-generic linux-headers-`uname -r`
7) Edit pci.h
. Insert:
#ifndef __devinit
#define __devinit
#define __devinitdata
#endif
just before:
#include <linux/pci.h>
So that the final file looks like this between lines 30 and 38 (except for the line numbers):
30 #ifndef __RTL_PCI_H__
31 #define __RTL_PCI_H__
32
33 #ifndef __devinit
34 #define __devinit
35 #define __devinitdata
36 #endif
37
38 #include <linux/pci.h>
Save the file.
8) Build & install the drivers. This will take a few minutes and should complete without error. If you get an error in the make
step, make sure you have followed the direction up to this point, especially the editing of the pci.h
file. That stumped me for quite a while.
make
make install
9) Reboot
shutdown -r now
10) When the machine reboots, your Wireless card should be good to go in Network Manager.
*This post was composed on my HP Laptop using the wireless card.