Skip to content →

Atheros wireless card configuration in Debian (with wpa_supplicant)

1. Remove ath5k modules ’cause it always set the rate as 1M/s, and I can’t set it to 54M/s (If so, the network is disconnected.)

#cd /etc/modprob.d/
#touch ath5k.conf mac80211.conf cfg80211.conf
#echo “blacklist ath5k” >> ath5k.conf
#echo “blacklist mac80211″ >>
mac80211.conf
#echo “blacklist cfg80211″ >> cfg80211.conf
#depmod -ae
#update-initramfs -u

2. Install ndiswrapper and wireless card driver.

#aptitude install module-assistant wierless-tools
#m-a prepare
#m-a a-i ndiswrapper
#echo ndiswrapper >> /etc/modules
#modprobe ndiswrapper
#
#
#ndiswrapper -i net5211.inf
#ndiswrapper -l
net5211 : driver installed
device (168C:0013) present (alternate
driver: ath5k)

3. Set up wpa_supplicant

# more /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
network={
ssid=”Lee”
key_mgmt=WPA-PSK
proto=WPA
pairwise=CCMP
group=CCMP
psk=”key”
}

4. Set up interface

# more /etc/network/interfaces
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address
192.168.1.102
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.1.1
dns-search debian.org

auto wlan0
iface wlan0 inet dhcp
wpa-driver wext
wpa-ap-scan 2
wpa-scan-ssid 1
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

5. Done.

For info, please visit http://www.isc.org/sw/dhcp/

 

Published in Linux

Comments

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.