Oct 7, 2009

debian lenny 安装无线网卡驱动

我的无线网卡是 AR242x 802.11abg Wireless PCI Express Adapter , 默认安装
的驱动是 ath5k

ath5k is a module for Atheros AR5xxx wireless LAN chipsets.

Unlike the MadWifi <http://wiki.debian.org/WiFi/ath_pci> driver, ath5k
does not require a binary HAL (hardware abstraction layer) for its use.
No firmware is required to be loaded from userspace. It is a completely
free and open-source driver. Supported devices
<http://wiki.debian.org/ath5k#supported> are listed at the end of this
page.

Atheros 802.11n PCI devices are supported by the ath9k
<http://wiki.debian.org/ath9k> driver.

$ iwconfig
可以看到 wlan0
在 /etc/network/interface 中对 wlan0 配置完后, ifup wlan0 , 提示

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/wlan0/00:22:69:68:8b:86
Sending on LPF/wlan0/00:22:69:68:8b:86
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 17
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

后来看到这篇文章
<http://easwy.com/blog/archives/thinkpad_t400_wireless_driver_for_debian_lenny/>

安装了 madwifi , 步骤如下:
$ sudo apt-get install module-assistant wireless-tools
$ sudo m-a prepare
$ sudo m-a a-i madwifi
$ sudo modprobe -r ath5k
$ sudo modprobe ath_pci

$ iwconfig // 可以看到 wlan0 变成了 ath0
修改 /etc/network/interface
auto ath0
iface ath0 inet dhcp
wpa-ssid TP-LINK_xxxx
wpa-psk xxxxxxxxxxxx

$ sudo ifup ath0 // 无线终于连接上了

No comments:

Post a Comment

您的评论将使我blog更有动力~