步骤一、解压源码压缩包 cd /root/downloadsbunzip2 madwifi-0.9.2.tar.bz2
tar xvf madwifi-0.9.2.tar步骤二、编译安装驱动cd madwifi-0.9.2 make查看编译信息,没有error,编译成功,继续安装驱动make install步骤三、驱动模块配置modprobe ath_pcimodprobe wlan_scan_staifconfig ath0 upwlanconfig ath0 list scanSSID BSSID CHAN RATE S:N INT CAPSdefault 00:d0:f8:e0:a8:88 6 54M 25:0 100 ESsiwlist ath0 scanath0 Scan completed :Cell 01 - Address: 00:D0:F8:E0:A8:88ESSID:"default"Mode:MasterFrequency:2.437 GHz (Channel 6)Quality=24/94 Signal level=-71 dBm Noise level=-95 dBmEncryption key:offBit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s; 12 Mb/s; 24 Mb/s; 36 Mb/s; 9 Mb/s; 18 Mb/s 48 Mb/s; 54 Mb/sExtra:bcn_int=100步骤四、连接访问接入点(Access Points)iwconfig ath0 ap 00:D0:F8:E0:A8:88步骤五、动态获取IP地址dhclient ath0 Internet Software Consortium DHCP Client 2.0pl5Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.All rights reserved.Please contribute if you find this software useful.For info, please visit http://www.isc.org/dhcp-contrib.htmleth1: unknown hardware address type 24eth1: unknown hardware address type 24Listening on LPF/ath0/00:02:6f:20:14:81Sending on LPF/ath0/00:02:6f:20:14:81Sending on Socket/fallback/fallback-netDHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 7DHCPOFFER from 192.168.1.1DHCPREQUEST on ath0 to 255.255.255.255 port 67DHCPACK from 192.168.1.1bound to 192.168.1.103 -- renewal in 7200 seconds. ping 192.168.1.1, 子网掩码:255.255.255.0, DNS: 202.199.240.2ifconfig ath0 192.168.1.x netmask 255.255.255.0 up/etc/resolv.confgedit /etc/resolv.confnameserver 202.199.240.2wqroute add default gw 192.168.1.1 ifconfig ath0 upping