Install wireless NIC Driver in acer AspireE1-472Gubuntu-12.04
I bought a relatively affordable notebook acer (acer) Aspire E1-472G, built-in linux operating system, because of work needs to replace the operating system with ubuntu12.04, however, it has been suffering from no wireless NIC Driver. The problem was finally solved today using the following methods:
1. view the wireless network card model:
~ $ Lspci-vnn | grep Wireless
My wireless network adapter is:
. 0 Network controller [0280]: Qualcomm Atheros QCA9565/AR9565 Wireless Network Adapter [168c: 0036] (rev 01)
2. install linux-headers-generic and build-essential
~$ sudo apt-get install linux-headers-generic build-essential
3. download and install the driver file:
~$ sudo -i wget https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.9-rc4/compat-drivers-3.9-rc4-2-s.tar.bz2
~$ tar xvf compat-drivers-3.9-rc4-2-s.tar.bz2
~$ cd compat-drivers-3.9-rc4-2-s/
~$ ./scripts/driver-select ath9k
~ $ Make then found an error :. /scripts/gen-compat-autoconf.sh/home/renjie/Downloads/compat-drivers-3.9-rc4-2-s /. config/home/renjie/Downloads/compat-drivers-3.9-rc4-2-s/config. mk> include/linux/compat_autoconf.h make-C/lib/modules/3.2.0-77-generic/build M =/home/renjie/Downloads/compat-drivers-3.9-rc4-2-s modules make [1]: entering directory '/usr/src/linux-headers-3.2.0-77-generic' CC [M]/home/renjie/Downloads/compat-drivers-3.9-rc4-2-s/compat/main. o In file encoded from/home/renjie/Downloads/compat-drivers-3.9-rc4-2-s/include/linux/compat-2.6.h: 71: 0, from <command line>: 0: /home/renjie/Downloads/compat-drivers-3.9-rc4-2-s/include/linux/compat-3.8.h: 49: 32: Error: 'kref _ get_unless_zero 'redefinition include/linux/kref. h: 47: 32: Note: the previous definition of 'kref _ get_unless_zero 'is here make [3]: *** [/home/renjie/Downloads/compat-drivers-3.9-rc4-2-s/compat/main. o] Error 1 make [2]: *** [/home/renjie/Downloads/compat-drivers-3.9-rc4-2-s/compat] Error 2 make [1]: * [_ module _/home/renjie/Downloads/compat-drivers-3.9-rc4-2-s] Error 2 make [1]: Leaving directory '/usr/src/linux-headers-3.2.0-77-generic' make: * ** [modules] Error 2 solution: Open
Include/linux/compat-3.8.h, find row 49th: static inline int _ must_check kref_get_unless_zero (struct kref * kref) {return atomic_add_unless (& kref-> refcount, 1, 0 );} comment out this function:
/* static inline int __must_check kref_get_unless_zero(struct kref *kref) { return atomic_add_unless(&kref->refcount, 1, 0); } */
Next, continue,
~$ make
~$ make install
~ $ Modprobe ath9k then you will find that the wireless network card can be used (if you cannot restart the machine ). For more information, see: http://askubuntu.com/questions/215498/how-to-install-qualcomm-atheros-ar9565-wireless-drivers