接下来解压并安装:#tar -zxvf linux-wlan-ng-0.2.1-pre25.tar.gz
#cd linux-wlan-ng-0.2.1-pre25
#./Configure或者#make config
-------------- Linux WLAN Configuration Script -------------
The default responses are correct for most users.
Build Prism2.x PCMCIA Card Services (_cs) driver? (y/n) [y]: n
Build Prism2 PLX9052 based PCI (_plx) adapter driver? (y/n) [n]: n
Build Prism2.5 native PCI (_pci) driver? (y/n) [n]: n
Build Prism2.5 USB (_usb) driver? (y/n) [n]: y
Linux source directory [/usr/src/linux]:
The kernel source tree is version 2.4.22
Alternate target install root directory on host []:
Module install directory [/lib/modules/2.4.22]:
It looks like you have a System V init file setup.
Prefix for build host compiler? (rarely needed) []:
Build for debugging (see doc/config.debug) (y/n) [y]:
Configuration successful.
#make all
#make install然后修改相关文件:1.在/etc/wlan/wlan.conf里,设置自己的ssid;SSID_wlan0="mywlan"
ENABLE_wlan0=y
2.创建一个wlancfg-mywlan文件;#cd /etc/wlan
#cp wlancfg-DEFAULT wlancfg-mywlan并把里面的IS_ADHOC=n改成IS_ADHOC=y
3.在/etc/modules.conf中加入一行:alias wlan0 prism2_usb在/etc/modprobe.conf中加入一行:alias wlan0 prism2_usb
4.插上USB无线网卡,指示灯亮#ifconfig wlan0 up然后就可以给wlan0配置地址了#ifconfig wlan0 inet6 add fec0:106:2900::1/64
#ifconfig wlan0
#iwconfig wlan0:看无线网卡的一些信息(包括ssid等)三、要实现切换,需要在MN上做一些改进