Enable the wireless network card of the atheros driver
Source: Internet
Author: User
Drive the atheros wireless network adapter-general Linux technology-Linux technology and application information. The following is a detailed description. We have recently obtained a piece of atheros 5212a. In view of the popularity of atheros, I would like to talk about how to install the linux Driver (specifically the madwifi driver) for it ).
Here, we will first mention ndiswrapper, which is also one of the drivers for wireless network adapters in linux, and it supports more chip types than madwifi. It is a good choice. However, according to my practice, when using this driver, gnome's network-admin cannot correctly display the signal quality (this seems to be a problem with netword-admin ).
We also need to mention that ubuntu has provided the madwifi driver in the form of restrcited-modules since 5.10. That is, if your kernel is installed from the source and the corresponding restrcited-modules is installed at the same time, your driver has been installed (you don't have to look down ).
If your ubuntu kernel is self-compiled or the release version is not integrated with madwifi or ...... In addition, if the output of your lspci is similar to Ethernet controller: Atheros, then:
First, go to madwifi.org to download the latest source code, I use the debian source madwifi-source_0.9.2 + r1842.20061207-2_all.deb. Decompress the package.
Cd madwifi
Make
The kernel source code is needed. For details, see INSTALL.
Sudo make install
Madwifi makefile seems to be a problem. make install cannot always install the kernel module to/lib/modules/'uname-R '. Like my machine, it is installed in/lib/modules/2.6.15.7-ubuntu1, and the actual path is/lib/modules/2.6.15.7-ubuntu1mylinux1. Just adjust it.
The target directory can be anywhere under/lib/modules/'uname-R.
Then recreate modules. dep
Sudo depmod
If this statement is not executed, modprobe will fail.
Sudo modprobe ath_pci
(We recommend that you add ath_pci to/etc/modules)
If it is normal, ifconfig will have more wifi0 and ath0. Wifi0 only indicates hardware, and ath0 is the network interface we need.
Iwlist ath0 scan
You can view the available APs. It is a bit strange that I always cannot scan the device at the beginning, and it will be normal after I restart it several times. Then you can use iwconfig to configure the wireless network, but netword-admin is the most intuitive.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service