从madwifi.org获取包后
tar -xzvf madwifi-0.9.3.tar.gz #最新的0.9.4包编译老是报错,就换0.9.3的包了……
cd madwifi-0.9.3
make
make install
modprobe ath_pci #无线模块支持
modprobe wlan_scan_sta #无线扫描支持
wlanconfig ath0 destroy #取消所有ath0配置,可能多此一举
wlanconfig ath0 create wlandev wifi0 wlanmode sta
iwconfig ath0 key xxxx #wep password,如果用ascii则s:xxxxx
iwconfig ath0 essid "xxxx" #广播域
ifconfig ath0 up
dhclient ath0 #or route add xxxxx
如果加密方式为wpa则需要用wpa_supplicant来配置,需要写配置文件。继续研究
。
阅读(1475) | 评论(0) | 转发(0) |