Though I have specified, key_mgmt as WPA-PSK, the device reads it as none. Is there any problem in device? if yes how can it be rectified.I also used these commands to give device information about wifi.wpa_cli -p/data/misc/wifi/sockets/ -iwlan0add_networkset_network 0 auth_alg OPENset_network 0 key_mgmt WPA-PSKset_network 0 ssid 5_18-SS-161-CHset_network 0 psk 1234567890select_network 0 5_18-SS-161-CHenable_network 0 5_18-SS-161-CHreassociatewhen i use these commands, android device connects to wifi, but as soon as I rerun when I use the below given command and see network info it reads key_mgmt as none.cat /data/misc/wifi/wpa_supplicant.confis it possible to give details of the AP permanently, so that the device doesn't forget it at all even after I diable and enable wifi it should remember the same information, using following commands:ctrl_interface=/var/run/wpa_supplicantnetwork={ssid=hdwirelesskey_mgmt=WPA-PSKgroup=TKIPpairwise=TKIPproto=WPApsk=hdwirelesskeypriority=1} 
Android device unable to connect wifi
wifi;android;adb