Print
Parent Category: Tutorials
Hits: 7389

This is tutorial will teach you how to install an Atheros wireless card linux driver from source.

The next example was made on Slackware 12.1 whith kernel 2.6.24.4-smp:

The output of lspci is:

02:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)

 

Now let's start the install:

#wget http://snapshots.madwifi.org/special/madwifi-nr-r3366+ar5007.tar.gz

#tar -vxzf madwifi-nr-r3366+ar5007.tar.gz

#cd madwifi-nr-r3366+ar5007

#make

#checkinstall --fstrans=no -S -y

#installpkg madwifi-nr-r3366+ar5007-i386-1.tgz

#cd ..

#rm -rf  madwifi-nr-r3366+ar5007*

At this moment driver should me installed:

root@Hercule:~# dmesg | egrep -i '(ath|wifi)'
md: multipath personality registered for level -4
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.10.2.2-ATHEROS (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425)
ath_pci: trunk
MadWifi: ath_attach: Switching rfkill capability off
ath_rate_sample: 1.2 (trunk)
MadWifi: ath_attach: Switching per-packet transmit power control off
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: ath_announce: Use hw queue 1 for WME_AC_BE traffic
wifi0: ath_announce: Use hw queue 0 for WME_AC_BK traffic
wifi0: ath_announce: Use hw queue 2 for WME_AC_VI traffic
wifi0: ath_announce: Use hw queue 3 for WME_AC_VO traffic
wifi0: ath_announce: Use hw queue 8 for CAB traffic
wifi0: ath_announce: Use hw queue 9 for beacons
ath_pci: wifi0: Atheros 5424/2424: mem=0xd4100000, irq=16
root@Hercule:~#

 

After that you need to configure your device.

I've made a script for this:

root@Hercule:~# cat /etc/rc.d/rc.wlan

/usr/local/bin/wlanconfig ath0 destroy

/usr/local/bin/wlanconfig ath0 create wlandev wifi0 wlanmode sta

/sbin/ifconfig ath0 up

/sbin/modprobe wlan_scan_sta

root@Hercule:~#


After that you need to add this device in /etc/rc.d/rc.inet1.conf:

# Config information for eth1:

IFNAME[1]="ath0"

IPADDR[1]=""

NETMASK[1]=""

USE_DHCP[1]="yes"

DHCP_HOSTNAME[1]=""

WLAN_WPA[1]="wpa_supplicant"

Next step is to configure your auth, /etc/wpa_supplicant.conf:

# WPA protected network, supply your own ESSID and WPAPSK here:

network={

scan_ssid=0

ssid="replace with the essid of the ap that you want to connect with"

proto=WPA

key_mgmt=WPA-PSK

pairwise=CCMP TKIP

group=CCMP TKIP WEP104 WEP40

psk="replace with the psk key"

priority=1

}

After that you neet to turn on your laptop wireless device, then run:

/etc/rc.d/rc.inet1 ath0_restart

That's it , have fun...

Note:

We use Hosting and VPS Hosting, from: www.star-host.org

We like and trust them.

Good prices, high security.