=====================================================
HOSTAPD Configuration commands
=====================================================
/system/bin/hostapd-e/data/misc/wifi/entropy.bin/data/misc/wifi/hostapd.conf &
Android:
NDC Softap Set Wlan0 henryking broadcast 6 WPA-PSK 11112222
BusyBox Ifconfig wlan0 up
NDC Softap Startap
NDC tether start "192.168.43.2" "192.168.43.254"
NDC busybox ifconfig wlan0 192.168.43.1 netmask 255.255.255.0
=====================================================
=====================================================
Wpa_supplicant-iwlan0-dwext-c/system/etc/wifi/wpa_supplicant.conf-dd-b
Wpa_supplicant-iwlan0-dnl80211-c/system/etc/wifi/wpa_supplicant.conf-b
Wpa_supplicant-iwlan0-dwext-c/data/misc/wifi/wpa_supplicant.conf-dd-b
Wpa_supplicant-iwlan0-dnl80211-c/data/misc/wifi/wpa_supplicant.conf-dd-b
=====================================================
WAPI Ascii/hex:
Set_network 0 SSID "WAPIPSK"
Set_network 0 Auth_alg OPEN
Set_network 0 Proto WAPI
Set_network 0 Key_mgmt Wapi-psk
Set_network 0 Psk_key_type 0//set_network 0 psk_key_type 1
Set_network 0 PSK "11111111"//set_network 0 PSK "3131313131313131"
WAPI CERT:
Setting the lock screen
Set_network 0 SSID "Wapicert"
Set_network 0 Auth_alg OPEN
Set_network 0 Proto WAPI
Set_network 0 Key_mgmt Wapi-cert
Set_network 0 Wapi_as_cert "/data/as.cer"
Set_network 0 Wapi_user_cert "/data/asue.cer"
=====================================================
Wpa_cli-iwlan0 Scan
Wpa_cli-iwlan0 Scan_results
Wpa_cli-iwlan0 Remove_network 0
Wpa_cli-iwlan0 Add_network
Wpa_cli-iwlan0 set_network 0 SSID ' "henryking" '
Wpa_cli-iwlan0 set_network 0 Key_mgmt Wpa-psk
Wpa_cli-iwlan0 set_network 0 PSK ' "12345678" '
Wpa_cli-iwlan0 set_network 0 Key_mgmt NONE
Wpa_cli-iwlan0 set_network 0 Wep_key0 123456
Wpa_cli-iwlan0 Set_network 0 Wep_tx_keyidx 0
Wpa_cli-iwlan0 Select_network 0
Wpa_cli-iwlan0 Save_config
Wpa_cli-iwlan0 List_networks
Wpa_cli-iwlan0 add_network;wpa_cli-iwlan0 set_network 0 SSID ' "82883008" '; wpa_cli-iwlan0 set_network 0 PSK ' "12345678" ; wpa_cli-iwlan0 Select_network 0
=====================================================
WPA_CLI-IRAUSB0 Scan
Wpa_cli-irausb0 Scan_results
Wpa_cli-irausb0 Add_network
Wpa_cli-irausb0 set_network 0 SSID ' "Henry"
Wpa_cli-irausb0 set_network 0 PSK ' "12345678" '
Wpa_cli-irausb0 set_network 0 Key_mgmt Wpa-psk
Wpa_cli-irausb0 set_network 0 Key_mgmt NONE
Wpa_cli-irausb0 Select_network 0
Wpa_cli-irausb0 Enable_network 0
Wpa_cli-irausb0 Ap_scan ' "1" '
Wpa_cli-irausb0 Save_config
=====================================================
=====================================================
Iwpriv Configuring the Network
=====================================================
WPA/WPA2:
Iwpriv rausb0 Set Networktype=infra
Iwpriv rausb0 Set Authmode=wpa2psk
Iwpriv rausb0 Set Encryptype=aes
Iwpriv rausb0 Set ssid= "Sabre"
Iwpriv rausb0 Set wpapsk= "12345678"
Iwpriv rausb0 set Networktype=infra;iwpriv rausb0 set Authmode=wpa2psk;iwpriv rausb0 set Encryptype=aes;iwpriv rausb0 set wpapsk= "12345678"; Iwpriv rausb0 set ssid= "henryking";
Iwpriv rausb0 set Networktype=infra;iwpriv rausb0 set Authmode=wpapsk;iwpriv rausb0 set Encryptype=aes;iwpriv rausb0 set S Sid= "82883008"; Iwpriv rausb0 set wpapsk= "12345678"
Iwpriv rausb0 set Networktype=infra;iwpriv wlan0 set Authmode=wpapsk;iwpriv wlan0 set Encryptype=aes;iwpriv wlan0 set WPAP sk= "12345678"; Iwpriv wlan0 set ssid= "henryking";
=====================================================
Wep:
Iwpriv rausb0 Set authmode=shared
Iwpriv rausb0 Set Encryptype=wep
Iwpriv rausb0 Set Defaultkeyid=1
Iwpriv rausb0 Set key1= "1111222233"
Iwpriv rausb0 Set ssid= "Sabre"
Iwconfig wlan0 Essid "Sabre"
Iwconfig wlan0 Key 1111222233
=====================================================
=====================================================
Wpa_supplicant.conf
=====================================================
Linux under Format:
=====================================================
Update_config=1
Ctrl_interface=/var/run/wpa_supplicant
network={
Ssid= "Henry"
psk= "12345678"
Key_mgmt=wpa-psk
}
=====================================================
Android under Format:
=====================================================
Update_config=1
Ctrl_interface=dir=/data/system/wpa_supplicant Group=wifi
Eapol_version=1
Ap_scan=1
Fast_reauth=1
=====================================================
Wpa_supplicant and Iwpriv tools to configure WiFi commands