Wpa_supplicant-dwext-ieth1-C/etc/wpa_supplicant.conf &
Wpa_cli save_config
Wpa_cli reconfigure
Wpa_cli list_networks
Wpa_cli status
Wpa_cli remove_network 0
Wpa_cli-ieth1 scan // search for Wireless Networks
Wpa_cli-ieth1 scan_results // Display Search Results
Wpa_cli-ieth1 add_network
For example:
Wpa_cli-ieth1 add_network
Wpa_cli-ieth1 set_network 1 SSID "test_ip"
Wpa_cli-ieth1 set_network 1 key_mgmt none
Wpa_cli-ieth1 set_network 1 wep_key0 "2223344"
Wpa_cli-ieth1 set_network 1 wep_tx_keyidx 0
Wpa_cli-ieth1 select_network 1
Wpa_cli-ieth1 enable_network 1
Wpa_cli-ieth1 quit
Wpa_cli-ieth1 dhclient eth1
Wpa_supplicant-dwext-ieth1-C/etc/wpa_supplicant.conf &
Wpa_cli-ieth1
Add_network (assume returns 1)
Set_network 1 SSID "test_ip"
Set_network 1 key_mgmt none
Set_network 1 wep_key0 "123456" // "your AP passwork" (if Usting ASCII, it need double quotation marks, if using hex, then don't need the double quotation marks)
Set_network 1 wep_tx_keyidx 0
Select_network 1 (optional, remember, if you are connecting with another AP, you should select it to disable the another)
Enable_network 1
Quit
Dhclient eth1