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 */
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
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
# 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
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
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
>
>
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
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'
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
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
10 matches
Mail list logo