Hi Deepak,

I'm not sure if you're using the wpa_supplicant or not to control your  
wifi, but we've solved this issue in the Android on Freerunner 
(http://git.koolu.org 
) with the following lines in an init.rc:
  109 service wpa_supplicant /system/bin/wpa_supplicant \
  110     -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf
  111     disabled
  112
  113 service dhcpcd /system/bin/dhcpcd -d -f /system/etc/dhcpcd/ 
android.conf eth0
  114     disabled
  115     oneshot
  116
  117 on property:init.svc.wpa_supplicant=stopped
  118     stop dhcpcd
  119
  120 on property:wlan.driver.action=load
  121     write /sys/bus/platform/drivers/s3c2440-sdi/bind s3c2440-sdi
  122     setprop wlan.driver.action -1
  123
  124 on property:wlan.driver.action=unload
  125     write /sys/bus/platform/drivers/s3c2440-sdi/unbind s3c2440-sdi
  126     setprop wlan.driver.action -1

Cheers,
Brian

On 17-Jul-09, at 5:08 AM, deepak singal wrote:

> Hi all,
>
> I am trying to port wifi on my target board.
> when I turn wifi off from GUI, dhcpcd still running in the background.
> when I turn wifi back on, dhcpcd tries to run again but terminates  
> early.
> I get this error:
> /************************ ERROR LOG*********************************/
> V/WifiStateTracker(  878): New network state is CONNECTED
> D/WifiStateTracker(  878): DhcpHandler: DHCP request started
> I//system/bin/dhcpcd( 1119): wlan0: flock `/data/misc/dhcp/dhcpcd- 
> wlan0.
> pid': Try again
> I/logwrapper( 1119): /system/bin/dhcpcd terminated by exit(1)
> D/SettingsWifiEnabler( 1055): Received network state changed to  
> NetworkInfo: type: WIFI[], state: CONNECTING/OBTAINING_IPADDe
> D/dalvikvm( 1019): GC freed 67 objects / 3248 bytes in 34ms
> I/WifiStateTracker(  878): DhcpHandler: DHCP request failed: Timed  
> out waiting for dhcpcd to start
> /************************ERROR LOG**********************************/
>
> getprop output showing [init.svc.dhcpcd]:[STOPPED], even though the  
> dhcpcd process is
> still running.
>
> logs for dhcpcd when it starts first time:
>
> /*********************Wifi  Wrking  
> LOG*********************************/
> V/WifiStateTracker(  878): New network state is CONNECTED
> D/WifiStateTracker(  878): DhcpHandler: DHCP request started
> I//system/bin/dhcpcd( 1079): wlan0: dhcpcd 4.0.1 starting
> I//system/bin/dhcpcd( 1079): wlan0: hardware address =  
> 00:21:91:98:07:1f
> I//system/bin/dhcpcd( 1079): wlan0: executing `/system/etc/dhcpcd/ 
> dhcpcd-
> run-hooks', reason PREINIT
> D/SettingsWifiEnabler( 1055): Received network state changed to  
> NetworkInfo: type: WIFI[], state: CONNECTING/OBTAINING_IPADDe
> I//system/bin/dhcpcd( 1079): wlan0: host does not support a  
> monotonic clock - timing can skew
> I//system/bin/dhcpcd( 1079): wlan0: broadcasting for a lease
> /****************************wifi  wrking  
> LOG*****************************/
>
>
> Anybody has idea or solution for this error :
> wlan0: flock `/data/misc/dhcp/dhcpcd-wlan0.pid': Try again
>
> Any help will be highly appreciated.
>
> Thanks & Regards,
> Deepak
>
> >


--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to