Still engaged in 8634, look at the end of the head. Alas. The disadvantage of Wireless_tools is that WPA authentication is not supported, so it is necessary to transplant wpa_supplicant. Wireless network card is based on Zydas chip, just can search the Internet Wpa_supplicant Zydas Special package: wpa_supplicant-0.4.7_zydas_pre3.tar.gz
The porting is very simple, the unpacking directly modifies the makefile, changes cc to MIPSEL-LINUX-GCC, then compiles directly through. After compiling, we can find several executable programs: WPA_SUPPLICANT,WPA_CLI and so on. Wpa_supplicant is the core program, and its relationship with WPA_CLI is the relationship between service and client: Run Wpa_supplicant in the background, use WPA_CLI to search, set up, and connect to the network.
The wpa_supplicant has a set of parameters that can be placed in a configuration file or specified directly at the time the program is run. The parameters to use each time must be stored in the configuration file is convenient, create a wpa_supplicant.conf, type the following (copied):
# Please do not modify the following line of content, otherwise it will not work properly
Ctrl_interface=/var/run/wpa_supplicant
# Ensure that only the root user can read the configuration of WPA
Ctrl_interface_group=0
# Use Wpa_supplicant to scan and select APS
Ap_scan=1
...
The
configuration file also stores the network configuration, depending on what you did with WPA_CLI. Once the configuration file is ready, you can run wpa_supplicant. Before that, of course, first plug in the wireless card, load the driver:
bash# insmod Zd1211b.ko
bash# ifconfig eth1 up
bash# wpa_supplicant-b-ieth1-dzydas-c/etc/wpa_supplicant.conf
Parameters-B for the background run,-ieth1 represents the use of the device Eth1,-dzydas represents the NIC chip is the zydas,-c specified profile.
Next can use WPA_CLI to configure the network,
bash# wpa_cli-ieth1 Scan//search wireless network
bash# wpa_cli-ieth1 scan_results//Display search results
bash# wpa_cli-ieth1 add_network
bash# iwconfig eth1 Essid "you_wifi_net"
bash# wpa_cli-ieth1 password 0 "password"
bash# wpa_cli-ieth1 Enable_ Network
luther.gliethttp add here
-ieth1 also wpa_cli and wpa_supplicant the file name of the communication in the Unix way.
Wpa_supplicant will create the eth1 file in the/data/system/wpa_supplicant directory when executed , so it can communicate with UNIX.
: http://hostap.epitest.fi/releases/
Wpa_supplicant using notes-wpa_cli iwconfig