服务器端:
[root@WEIYAN /]$ insmod rt73.ko 加载驱动
rtusb init ====>
usbcore: registered new driver rt73
[root@WEIYAN /]$ usb 1-1: new full speed USB device using
s3c2410-ohci and address 2
usb 1-1: configuration #1 chosen from 1 choice
idVendor = 0x148f, idProduct = 0x2573
idVendor2 = 0x4600, idProduct2 = 0xc3f0
idVendor = 0x148f, idProduct = 0x2573
[root@WEIYAN /]$ ifconfig rausb0 up 打开无线网卡
rt73 driver version - 1.0.4.0
[root@WEIYAN /]$ ifconfig eth0 down 关闭以太网
[root@WEIYAN /]$ iwconfig rausb0 mode ad-hoc 设置AD-HOC模式
[root@WEIYAN /]$ iwconfig rausb0 essid weiyan 设置接入点
[root@WEIYAN /]$ iwconfig rausb0
rausb0 RT73 WLAN ESSID:"weiyan"
Mode:Ad-Hoc Frequency=241.2 MHz Cell:
BE:5C:23:88:5C:75
Bit Rate=11
Mb/s
RTS
thr:off Fragment thr:off
Encryption
key:off
Link
Quality=87/100 Signal level:-52 dBm Noise level:-79 dBm
Rx invalid
nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive
retries:0 Invalid misc:0 Missed beacon:0
[root@WEIYAN /]$ ifconfig rausb0 192.168.2.33 设置无线网络IP
[root@WEIYAN /]$ ping
192.168.2.22 测试与客户端的连接状态
PING 192.168.2.22 (192.168.2.22): 56 data bytes
64 bytes from 192.168.2.22: seq=0 ttl=64 time=4.369 ms
64 bytes from 192.168.2.22: seq=1 ttl=64 time=4.310 ms
64 bytes from 192.168.2.22: seq=2 ttl=64 time=3.774 ms
64 bytes from 192.168.2.22: seq=3 ttl=64 time=4.109 ms
--- 192.168.2.22 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 3.774/4.140/4.369 ms
[root@WEIYAN /]$ httpd -h /bin/ 打开httpd服务,指定路径为/bin目录