1
0
/
1
5
MY-WF003U
USB Wi-Fi Module
⑵
Copy wpa tool source code under the disk Linux/Tools directory to work folder and decompress it:
$ cp \
/media/cdrom/MY-WF003\ USB\ WIFI\ Module/Linux/Tools/\
wpa_supplicant_hostapd-0.8_rtw_r7475.20130812.tar.gz ./
$ tar xvzf wpa_supplicant_hostapd-0.8_rtw_r7475.20130812.tar.gz
$ cd wpa_supplicant_hostapd-0.8_rtw_r7475.20130812
⑶
Compile driver
$ make CC=/usr/local/arm/arm-2010q1/bin/arm-none-linux-gnueabi-gcc
CC is the cross-compiler used for compiling. After that, the created three executable files wpa_cli,
wpa_passphrase and wpa_supplicant are needed wpa tools. In this user manual, only used wpa_cli and
wpa_supplicant two tools needed; how to use these two tools in following chapters.
4.5 Configure WLAN through WAP Tool
Insert the MY-WF003U USB WiFi Module and then use WAP to configure wlan. How to use wap tool
and steps to configure wlan is as follow.
4.5.1 Using configuration file
Use wpa_passphase to generate configuration files,How to use wpa_passphase:
# wpa_passphase ssid ssid_code > /etc/wpa_supplicant.conf
If my WIFI SSID is my_wifi, password is: 12345678.
# wpa_passphase my_wifi 12345678 > /etc/wpa_supplicant.conf
“wpa_supplicant.conf” will be generated in directory /etc/, use this configuration to connect to wifi:
# wpa_supplicant -i wlan0 -c/etc/wpa_supplicant.conf -Dwext -B
After connecting wifi, use following command to obtain IP address:
# udhcpc -i wlan0
After above steps,
get online through WiFi.
# ping www.baidu.com
PING www.baidu.com (115.239.210.26): 56 data bytes
64 bytes from 115.239.210.26: seq=0 ttl=54 time=107.556 ms
64 bytes from 115.239.210.26: seq=1 ttl=54 time=217.601 ms
64 bytes from 115.239.210.26: seq=2 ttl=54 time=131.467 ms
64 bytes from 115.239.210.26: seq=3 ttl=54 time=150.235 ms
64 bytes from 115.239.210.26: seq=4 ttl=54 time=154.285 ms