[android-porting] Re: wpa_supplicaent

2008-12-09 Thread Richard Zhao
static int control_supplicant(int startIt) { char supp_status[PROPERTY_VALUE_MAX] = {'\0'}; const char *ctrl_prop = (startIt ? "ctl.start" : "ctl.stop"); const char *desired_status = (startIt ? "running" : "stopped"); int count = 20; /* wait at most 20 seconds for completion */

[android-porting] Re: wpa_supplicaent

2008-12-09 Thread Richard Zhao
I see "property_set(ctrl_prop, SUPPLICANT_NAME)" is starting the wpa_supplicant service. I tried to run "setprop ctrl.start wpa_supplicant" manually, but wpa_supplicant is not run. I've added something in init.rc: service wpa_supplicant /system/bin/wpa_supplicant -Dwext -i eth1 -C/data/misc/wifi/s

[android-porting] Re: wpa_supplicaent

2008-12-09 Thread nagamatu
setprop uses property_set library included in system/core/libutil/ properties.c this api will send property information for init process through socket. with the latest init source code, init shows error message when fails to start service. check existance of /dev/socket/property_service and upda

[android-porting] Re: wpa_supplicaent

2008-12-09 Thread Richard Zhao
# ls /dev/socket/property_service /dev/socket/property_service I can't see any error message. init I'm using is compiled out from android 1.0 source. Thanks Richard 2008/12/10 nagamatu <[EMAIL PROTECTED]>: > > setprop uses property_set library included in system/core/libutil/ > properties.c > th

[android-porting] Re: wpa_supplicaent

2008-12-10 Thread nagamatu
Can you start wpa_supplicant by start command like: # start wpa_supplicant This start command just do property_set("ctl.start", service_name) And get the system property of "init.svc.wpa_supplicant". -- nagamatu On 12月10ζ—₯, 午後4:57, "Richard Zhao" <[EMAIL PROTECTED]> wrote: > # ls /dev/socket

[android-porting] Re: wpa_supplicaent

2008-12-11 Thread Richard Zhao
It still don't work. 2008/12/10 nagamatu <[EMAIL PROTECTED]>: > > Can you start wpa_supplicant by start command like: ># start wpa_supplicant > This start command just do property_set("ctl.start", service_name) > > And get the system property of "init.svc.wpa_supplicant". > > -- > nagamatu > >

[android-porting] Re: wpa_supplicaent

2008-12-11 Thread Sean McNeil
Are you even certain you have the wpa_supplicant binary? Can you run the command from the shell? Richard Zhao wrote: > It still don't work. > > 2008/12/10 nagamatu <[EMAIL PROTECTED]>: > >> Can you start wpa_supplicant by start command like: >># start wpa_supplicant >> This start command j

[android-porting] Re: wpa_supplicaent

2008-12-11 Thread Richard Zhao
Sure I can run it from console. After "start wpa_supplicant", "getprop init.svc.wpa_supplicant" show "restarting". Thanks Rihard 2008/12/11 Sean McNeil : > > Are you even certain you have the wpa_supplicant binary? Can you run the > command from the shell? > > Richard Zhao wrote: >> It still don'

[android-porting] Re: wpa_supplicaent

2008-12-12 Thread nagamatu
If your wpa_supplicant is running as a service process, "getprop init.svc.wpa_supplicant" shows "running". In case of termination of service execution, status becomes "stopped". And when service is not oneshot mode, init will try to restart this service again. First debug your wpa_supplicant by e

[android-porting] Re: wpa_supplicaent

2008-12-14 Thread Yang, Xiaopeng
Maybe you need to make sure whether the directories like /data/misc/wifi have the right permission for wpa_supplicant to read and write. Xiaopeng Richard Zhao wrote: > Sure I can run it from console. > After "start wpa_supplicant", "getprop init.svc.wpa_supplicant" show > "restarting". > > Tha