[android-porting] Guide on adding WiFi drivers to Android

29429 views
Skip to first unread message

Nicu Pavel

unread,
May 6, 2010, 7:09:27 AM5/6/10
to android...@googlegroups.com
I've written a how-to guide for adding WiFi driver to android and configuring the necessary software:

http://blog.linuxconsulting.ro/2010/04/porting-wifi-drivers-to-android.html

Regards,
Nicu Pavel 

--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting

Nicu Pavel

unread,
May 5, 2010, 5:32:00 PM5/5/10
to android-porting

tommy.hong

unread,
May 6, 2010, 8:33:51 PM5/6/10
to android...@googlegroups.com
Thanks,guy!

2010/5/6 Nicu Pavel <npa...@ituner.com>



--
concentrate for work && keep calm and carry on,Achievement provides the only real pleasure in life!

osama gamal

unread,
May 7, 2010, 6:21:26 AM5/7/10
to android...@googlegroups.com
Very helpful, I will need it soon ..
Thanks

dimi...@android.com

unread,
May 7, 2010, 3:21:01 PM5/7/10
to android-porting
Very good and useful guide. Just want to add to wpa_supplicant socket
control.
Despite you can use it as you mentioned the idea was to use special
socket pair implementation like this:

wpa_supplicant.conf:
ctrl_interface=wlan0

init.xxx.rc:
service wpa_supplicant /system/bin/wpa_supplicant \
-Dxxxx -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot

On May 6, 4:09 am, Nicu Pavel <npa...@ituner.com> wrote:
> I've written a how-to guide for adding WiFi driver to android and
> configuring the necessary software:
>
> http://blog.linuxconsulting.ro/2010/04/porting-wifi-drivers-to-androi...

Nicu Pavel

unread,
May 10, 2010, 12:24:52 PM5/10/10
to android-porting
Thanks Dimitry,

I updated the guide. On second look I found out why it the android private namespace socket didn't work for me.If /data/system/wpa_supplicant folder exists the ifname will be built incorrect in wifi.c wpa_ctrl_open() function.

Do you think I should submit the wpa driver that emulates android priv_driver_cmd() (driver_awext.c) to android source review ? 

Thanks,
Nicu  Pavel

dimi...@android.com

unread,
May 10, 2010, 2:25:23 PM5/10/10
to android-porting
Hi Nicu,

I am not sure what the difference between driver_awext.c and
driver_wext.c.
And the last one has the necessary changes.
Thanks,

Dmitry

On May 10, 9:24 am, Nicu Pavel <npa...@ituner.com> wrote:
> Thanks Dimitry,
>
> I updated the guide. On second look I found out why it the android private
> namespace socket didn't work for me.If /data/system/wpa_supplicant folder
> exists the ifname will be built incorrect in wifi.c wpa_ctrl_open()
> function.
>
> Do you think I should submit the wpa driver that emulates android
> priv_driver_cmd() (driver_awext.c) to android source review ?
>
> Thanks,
> Nicu  Pavel
>
> On Fri, May 7, 2010 at 10:21 PM, dimitr...@android.com <
>
>
>
>
>
> dimitr...@android.com> wrote:
> > Very good and useful guide. Just want to add to wpa_supplicant socket
> > control.
> > Despite you can use it as you mentioned the idea was to use special
> > socket pair implementation like this:
>
> > wpa_supplicant.conf:
> >  ctrl_interface=wlan0
>
> > init.xxx.rc:
> > service wpa_supplicant /system/bin/wpa_supplicant \
> >    -Dxxxx -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
> >     socket wpa_wlan0 dgram 660 wifi wifi
> >     disabled
> >    oneshot
>
> > On May 6, 4:09 am, Nicu Pavel <npa...@ituner.com> wrote:
> > > I've written a how-to guide for adding WiFi driver to android and
> > > configuring the necessary software:
>
> > >http://blog.linuxconsulting.ro/2010/04/porting-wifi-drivers-to-androi...
>
> > > Regards,
> > > Nicu Pavel
>
> > > --
> > > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsubscribe@ googlegroups.com>
> > > website:http://groups.google.com/group/android-porting
>
> > --
> > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsubscribe@ googlegroups.com>

Nicu Pavel

unread,
May 10, 2010, 9:46:53 PM5/10/10
to android-porting
The differences is that driver_wext.c expects the wifi kernel driver
to implement the SIOCSIWPRIV ioctl and respond to android commands
like RSSI, MACADDR etc, while driver_awext.c replies to android
commands by using standard wireless extensions ioctls and works for
most wifi drivers.
Basically driver_awext.c is a wrapper for driver_wext.c and only
reimplements function wpa_driver_priv_driver_cmd().

Direct link to the patch:
http://www.linuxconsulting.ro/android/patches/0001-Added-a-separate-driver-awext-to-emulate-Android-dri.patch

Thanks,
Nicu Pavel.

Michael Trimarchi

unread,
May 26, 2010, 2:55:31 PM5/26/10
to npa...@ituner.com, android-porting
Hi,

Nicu Pavel wrote:
> The differences is that driver_wext.c expects the wifi kernel driver
> to implement the SIOCSIWPRIV ioctl and respond to android commands
> like RSSI, MACADDR etc, while driver_awext.c replies to android
> commands by using standard wireless extensions ioctls and works for
> most wifi drivers.
> Basically driver_awext.c is a wrapper for driver_wext.c and only
> reimplements function wpa_driver_priv_driver_cmd().
>
> Direct link to the patch:
> http://www.linuxconsulting.ro/android/patches/0001-Added-a-separate-driver-awext-to-emulate-Android-dri.patch
>

I have done somenthing different using your code. Instead of creating a
new file just emulate the call in wext part

http://gitorious.org/flow-g1-5/platform_external_wpa_supplicant/commit/0079ce31faa15d882272891661493ce734e5ab3e

What do you think? (NEED TO BE TEST)

Michael Trimarchi

Nicu Pavel

unread,
May 27, 2010, 6:08:05 AM5/27/10
to android-porting
> Nicu Pavel wrote:
>>
>> The differences is that driver_wext.c expects the wifi kernel driver
>> to implement the SIOCSIWPRIV ioctl and respond to android commands
>> like RSSI, MACADDR etc, while driver_awext.c replies to android
>> commands by using standard wireless extensions ioctls and works for
>> most wifi drivers.
>> Basically driver_awext.c is a wrapper for driver_wext.c and only
>> reimplements function wpa_driver_priv_driver_cmd().
>>
>> Direct link to the patch:
>>
>> http://www.linuxconsulting.ro/android/patches/0001-Added-a-separate-driver-awext-to-emulate-Android-dri.patch
>>
>
> I have done somenthing different using your code. Instead of creating a new
> file just emulate the call in wext part
>
> http://gitorious.org/flow-g1-5/platform_external_wpa_supplicant/commit/0079ce31faa15d882272891661493ce734e5ab3e
>
> What do you think? (NEED TO BE TEST)

I didn't want to touch google code, that's why I made a separate file,
if I have a product with a bcm card for example I can build with WEXT
driver if not I'm building with AWEXT driver.

Nicu Pavel

Weber

unread,
Jul 20, 2010, 9:22:33 PM7/20/10
to android-porting, Nicu Pavel
Hi,I read your wifi porting guide ,and followed it
but the error still appears--By the way the version I use is eclair
2.1-update1

E/WifiHW ( 708): Unable to open connection to supplicant on "/data/
system/wpa_supplicant/sta": No such file or directory

Here is my porting flow:
1.
build/target/board/generic/BoardConfig.mk
BOARD_WPA_SUPPLICANT_DRIVER := WEXT
I also try to add ------HAVE_CUSTOM_WIFI_DRIVER_2 := true,but it still
cannot work
2.
2.1 modify external/wpa_supplicant/common.c and set wpa_debug_level =
MSG_DEBUG
2.2 modify common.h and change #define wpa_printf from if ((level) >=
MSG_INFO) to if ((level) >= MSG_DEBUG)
3.
system/etc/wifi/wpa_supplicant.conf and data/misc/wifi/
wpa_supplicant.conf
ctrl_interface=DIR=/data/system/wpa_supplicant GROUP=wifi
update_config=1
ap_scan=1
4.
init.rc
mkdir /system/etc/wifi 0777 wifi wifi
chmod 0777 /system/etc/wifi
chmod 0777 /system/etc/wifi/wpa_supplicant.conf
chown wifi wifi /system/etc/wifi/wpa_supplicant.conf

##wpa_supplicant control socket for android wifi.c (android private
socket)
mkdir /data/misc/wifi 0777 wifi wifi
mkdir /data/misc/wifi/sockets 0777 wifi wifi
chmod 0777 /data/misc/wifi
chmod 0777 /data/misc/wifi/wpa_supplicant.conf
chown wifi wifi /data/misc/wifi
chown wifi wifi /data/misc/wifi/wpa_supplicant.conf

## wpa_supplicant socket (unix socket mode)
mkdir /data/system/wpa_supplicant 0777 wifi wifi
chmod 0777 /data/system/wpa_supplicant
chown wifi wifi /data/system/wpa_supplicant
chown wifi wifi /data/system
chown wifi wifi /data

## wpa_supplicant socket (unix socket mode--another goup version)
----when it failed ,I try this one ,still failed
# mkdir /data/system/wpa_supplicant 0777 system system
# chmod 0777 /data/system/wpa_supplicant
# chown system system /data/system/wpa_supplicant
# chown system system /data/system
# chown system system /data
5.init.rc
service wpa_supplicant /system/bin/wpa_supplicant -dd -Dwext -ieth1 -
c /system/etc/wifi/wpa_supplicant.conf
group system wifi inet
disabled
oneshot

service dhcpcd /system/bin/dhcpcd -f /system/etc/dhcpcd/dhcpcd.conf -d
eth1
group system dhcp wifi
disabled
oneshot

/system/etc/dhcpcd/dhcpcd.conf
interface eth1
option subnet_mask, routers, domain_name_servers
6.
modified wifi.c to loader my libertas.ko and libertas_sdio.ko
and add the bellow in init.rc
setprop wifi.interface "eth1"
setprop wlan.driver.status "ok"
setprop wlan.interface "eth1"

but the erro is the same
E/WifiHW ( 708):Unable to open connection to supplicant on "/data/
system/wpa_supplicant/eth1": No such file or directory

I add some log in external/wpa_supplicant/wpa_ctrl.c
and found that the error is generated in wpa_ctrl.c by the following
line:
connect(ctrl->s, (struct sockaddr *) &ctrl->dest,sizeof(ctrl->dest))
< 0)

here are the logs
I/PackageManager( 708): Features: android.hardware.wifi
android.hardware.location.network android.hardware.bluetooth
android.hardware.location android.hardware.location.gps
android.hardware.touchscreen android.hardware.sensor.accelerometer
android.hardware.sensor.compass
V/ConnectivityService( 708): Starting Wifi Service.
I/WifiService( 708): WifiService starting up with Wi-Fi enabled
W/WifiQiu ( 708): Weber@ctrl is NULL after connect(...)for
CTRL_IFACE_UNIX-ifNdef ANDROID!
E/WifiHW ( 708): Unable to open connection to supplicant on "/data/
system/wpa_supplicant/eth1": No such file or directory
D/wpa_supplicant( 773): Initializing interface 'eth1' conf '/system/
etc/wifi/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A'
bridge 'N/A'
D/wpa_supplicant( 773): Configuration file '/system/etc/wifi/
wpa_supplicant.conf' -> '/system/etc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 773): Reading configuration file '/system/etc/wifi/
wpa_supplicant.conf'
D/wpa_supplicant( 773): ctrl_interface='DIR=/data/system/
wpa_supplicant GROUP=wifi'
D/wpa_supplicant( 773): update_config=1
D/wpa_supplicant( 773): ap_scan=1
D/wpa_supplicant( 773): Initializing interface (2) 'eth1'
D/wpa_supplicant( 773): EAPOL: SUPP_PAE entering state DISCONNECTED
D/wpa_supplicant( 773): EAPOL: KEY_RX entering state NO_KEY_RECEIVE
D/wpa_supplicant( 773): EAPOL: SUPP_BE entering state INITIALIZE
D/wpa_supplicant( 773): EAP: EAP entering state DISABLED
D/wpa_supplicant( 773): EAPOL: External notification - portEnabled=0
D/wpa_supplicant( 773): EAPOL: External notification - portValid=0
D/wpa_supplicant( 773): SIOCGIWRANGE: WE(compiled)=22 WE(source)=15
enc_capa=0xf
D/wpa_supplicant( 773): capabilities: key_mgmt 0xf enc 0xf
D/wpa_supplicant( 773): WEXT: Operstate: linkmode=1, operstate=5
D/wpa_supplicant( 773): Own MAC address: 00:1a:6b:a2:38:65
D/wpa_supplicant( 773): wpa_driver_wext_set_wpa
D/wpa_supplicant( 773): wpa_driver_wext_set_key: alg=0 key_idx=0
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 773): wpa_driver_wext_set_key: alg=0 key_idx=1
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 773): wpa_driver_wext_set_key: alg=0 key_idx=2
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 773): wpa_driver_wext_set_key: alg=0 key_idx=3
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 773): wpa_driver_wext_set_countermeasures
D/wpa_supplicant( 773): wpa_driver_wext_set_drop_unencrypted
D/wpa_supplicant( 773): Setting scan request: 0 sec 100000 usec
D/wpa_supplicant( 773): Using existing control interface directory.
D/wpa_supplicant( 773): ctrl_interface_group=1010 (from group name
'wifi')
D/wpa_supplicant( 773): Added interface eth1
D/wpa_supplicant( 773): RTM_NEWLINK: operstate=0 ifi_flags=0x1043
([UP][RUNNING])
D/wpa_supplicant( 773): RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1'
added
D/wpa_supplicant( 773): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 773): RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1'
added
D/wpa_supplicant( 773): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 773): Wireless event: cmd=0x8b06 len=8
D/wpa_supplicant( 773): State: DISCONNECTED -> SCANNING
I/wpa_supplicant( 773): CTRL-EVENT-STATE-CHANGE id=-1 state=2
D/wpa_supplicant( 773): Starting AP scan (broadcast SSID)
D/wpa_supplicant( 773): Trying to get current scan results first
without requesting a new scan to speed up initial association
D/wpa_supplicant( 773): Received 0 bytes of scan results (0 BSSes)
D/wpa_supplicant( 773): Scan results: 0
I/wpa_supplicant( 773): CTRL-EVENT-SCAN-RESULTS Ready
D/wpa_supplicant( 773): No suitable AP found.
D/wpa_supplicant( 773): Setting scan request: 0 sec 0 usec
D/wpa_supplicant( 773): Starting AP scan (broadcast SSID)
D/wpa_supplicant( 773): Scan requested (ret=0) - scan timeout 5
seconds
D/wpa_supplicant( 773): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 773): Wireless event: cmd=0x8b19 len=8
D/wpa_supplicant( 773): Received 0 bytes of scan results (0 BSSes)
D/wpa_supplicant( 773): Scan results: 0
I/wpa_supplicant( 773): CTRL-EVENT-SCAN-RESULTS Ready
D/wpa_supplicant( 773): No suitable AP found.
D/wpa_supplicant( 773): Setting scan request: 5 sec 0 usec
D/WifiService( 708): ACTION_BATTERY_CHANGED pluggedType: 1
D/wpa_supplicant( 773): No enabled networks - do not scan
D/wpa_supplicant( 773): State: SCANNING -> INACTIVE
I/wpa_supplicant( 773): CTRL-EVENT-STATE-CHANGE id=-1 state=1
D/WifiService( 708): ACTION_SCREEN_ON
V/WifiStateTracker( 708): Supplicant died unexpectedly
D/wpa_supplicant( 773): RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
D/wpa_supplicant( 773): RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1'
added
I/wpa_supplicant( 773): CTRL-EVENT-TERMINATING - signal 15 received
I/wpa_supplicant( 773): CTRL-EVENT-TERMINATING - signal 0 received
D/wpa_supplicant( 773): Removing interface eth1
D/wpa_supplicant( 773): State: INACTIVE -> DISCONNECTED
I/wpa_supplicant( 773): CTRL-EVENT-STATE-CHANGE id=-1 state=0
D/wpa_supplicant( 773): wpa_driver_wext_set_operstate: operstate 0->0
(DORMANT)
D/wpa_supplicant( 773): WEXT: Operstate: linkmode=-1, operstate=5
D/wpa_supplicant( 773): No keys have been configured - skip key
clearing
D/wpa_supplicant( 773): EAPOL: External notification - portEnabled=0
D/wpa_supplicant( 773): EAPOL: External notification - portValid=0
D/wpa_supplicant( 773): wpa_driver_wext_set_wpa
D/wpa_supplicant( 773): wpa_driver_wext_set_drop_unencrypted
D/wpa_supplicant( 773): wpa_driver_wext_set_countermeasures
D/wpa_supplicant( 773): No keys have been configured - skip key
clearing
D/wpa_supplicant( 773): CTRL_IFACE wait for attached monitors to
receive messages
D/wpa_supplicant( 773): Cancelling scan request
D/wpa_supplicant( 773): Cancelling authentication timeout
D/wpa_supplicant( 773): WEXT: Operstate: linkmode=0, operstate=6

Then ,I try the private socket
first ,I remove the /data/system/wpa_supplicant as you said in the
groups
then:
3.
ctrl_interface=eth1
update_config=1
ap_scan=1
4.
init.rc
comment these:
## wpa_supplicant socket (unix socket mode)
# mkdir /data/system/wpa_supplicant 0777 wifi wifi
# chmod 0777 /data/system/wpa_supplicant
# chown wifi wifi /data/system/wpa_supplicant
# chown wifi wifi /data/system
# chown wifi wifi /data
5.
service wpa_supplicant /system/bin/wpa_supplicant -dd -Dwext -ieth1 -
c /system/etc/wifi/wpa_supplicant.conf
socket wpa_eth1 dgram 777 wifi wifi
group system wifi inet
disabled
oneshot

the others are the same as the uinx socket.
but it still can not connnect.

the logs :
I/PackageManager( 708): Features: android.hardware.wifi
android.hardware.location.network android.hardware.bluetooth
android.hardware.location android.hardware.location.gps
android.hardware.touchscreen android.hardware.sensor.accelerometer
android.hardware.sensor.compass
V/ConnectivityService( 708): Starting Wifi Service.
I/WifiService( 708): WifiService starting up with Wi-Fi enabled
D/wpa_supplicant( 774): Initializing interface 'eth1' conf '/system/
etc/wifi/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A'
bridge 'N/A'
D/wpa_supplicant( 774): Configuration file '/system/etc/wifi/
wpa_supplicant.conf' -> '/system/etc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 774): Reading configuration file '/system/etc/wifi/
wpa_supplicant.conf'
D/wpa_supplicant( 774): ctrl_interface='eth1'
D/wpa_supplicant( 774): update_config=1
D/wpa_supplicant( 774): ap_scan=1
D/wpa_supplicant( 774): Initializing interface (2) 'eth1'
D/wpa_supplicant( 774): EAPOL: SUPP_PAE entering state DISCONNECTED
D/wpa_supplicant( 774): EAPOL: KEY_RX entering state NO_KEY_RECEIVE
D/wpa_supplicant( 774): EAPOL: SUPP_BE entering state INITIALIZE
D/wpa_supplicant( 774): EAP: EAP entering state DISABLED
D/wpa_supplicant( 774): EAPOL: External notification - portEnabled=0
D/wpa_supplicant( 774): EAPOL: External notification - portValid=0
D/wpa_supplicant( 774): SIOCGIWRANGE: WE(compiled)=22 WE(source)=15
enc_capa=0xf
D/wpa_supplicant( 774): capabilities: key_mgmt 0xf enc 0xf
D/wpa_supplicant( 774): WEXT: Operstate: linkmode=1, operstate=5
D/wpa_supplicant( 774): Own MAC address: 00:1a:6b:a2:38:65
D/wpa_supplicant( 774): wpa_driver_wext_set_wpa
D/wpa_supplicant( 774): wpa_driver_wext_set_key: alg=0 key_idx=0
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 774): wpa_driver_wext_set_key: alg=0 key_idx=1
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 774): wpa_driver_wext_set_key: alg=0 key_idx=2
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 774): wpa_driver_wext_set_key: alg=0 key_idx=3
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 774): wpa_driver_wext_set_countermeasures
D/wpa_supplicant( 774): wpa_driver_wext_set_drop_unencrypted
D/wpa_supplicant( 774): Setting scan request: 0 sec 100000 usec
D/wpa_supplicant( 774): Added interface eth1
D/wpa_supplicant( 774): RTM_NEWLINK: operstate=0 ifi_flags=0x1043
([UP][RUNNING])
D/wpa_supplicant( 774): RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1'
added
D/wpa_supplicant( 774): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 774): RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1'
added
D/wpa_supplicant( 774): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 774): Wireless event: cmd=0x8b06 len=8
D/wpa_supplicant( 774): State: DISCONNECTED -> SCANNING
I/wpa_supplicant( 774): CTRL-EVENT-STATE-CHANGE id=-1 state=2
D/wpa_supplicant( 774): Starting AP scan (broadcast SSID)
D/wpa_supplicant( 774): Trying to get current scan results first
without requesting a new scan to speed up initial association
D/wpa_supplicant( 774): Received 0 bytes of scan results (0 BSSes)
D/wpa_supplicant( 774): Scan results: 0
I/wpa_supplicant( 774): CTRL-EVENT-SCAN-RESULTS Ready
D/wpa_supplicant( 774): No suitable AP found.
D/wpa_supplicant( 774): Setting scan request: 0 sec 0 usec
D/wpa_supplicant( 774): Starting AP scan (broadcast SSID)
D/wpa_supplicant( 774): Scan requested (ret=0) - scan timeout 5
seconds
D/wpa_supplicant( 774): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 774): Wireless event: cmd=0x8b19 len=8
D/wpa_supplicant( 774): Received 0 bytes of scan results (0 BSSes)
D/wpa_supplicant( 774): Scan results: 0
I/wpa_supplicant( 774): CTRL-EVENT-SCAN-RESULTS Ready
D/wpa_supplicant( 774): No suitable AP found.
D/wpa_supplicant( 774): Setting scan request: 5 sec 0 usec
D/WifiService( 708): ACTION_BATTERY_CHANGED pluggedType: 1
D/wpa_supplicant( 774): No enabled networks - do not scan
D/wpa_supplicant( 774): State: SCANNING -> INACTIVE
I/wpa_supplicant( 774): CTRL-EVENT-STATE-CHANGE id=-1 state=1
D/WifiService( 708): ACTION_SCREEN_ON
V/WifiStateTracker( 708): Supplicant died unexpectedly
D/wpa_supplicant( 774): RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
D/wpa_supplicant( 774): RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1'
added
I/wpa_supplicant( 774): CTRL-EVENT-TERMINATING - signal 15 received
I/wpa_supplicant( 774): CTRL-EVENT-TERMINATING - signal 0 received
D/wpa_supplicant( 774): Removing interface eth1
D/wpa_supplicant( 774): State: INACTIVE -> DISCONNECTED
I/wpa_supplicant( 774): CTRL-EVENT-STATE-CHANGE id=-1 state=0
D/wpa_supplicant( 774): wpa_driver_wext_set_operstate: operstate 0->0
(DORMANT)
D/wpa_supplicant( 774): WEXT: Operstate: linkmode=-1, operstate=5
D/wpa_supplicant( 774): No keys have been configured - skip key
clearing
D/wpa_supplicant( 774): EAPOL: External notification - portEnabled=0
D/wpa_supplicant( 774): EAPOL: External notification - portValid=0
D/wpa_supplicant( 774): wpa_driver_wext_set_wpa
D/wpa_supplicant( 774): wpa_driver_wext_set_drop_unencrypted
D/wpa_supplicant( 774): wpa_driver_wext_set_countermeasures
D/wpa_supplicant( 774): No keys have been configured - skip key
clearing
D/wpa_supplicant( 774): CTRL_IFACE wait for attached monitors to
receive messages
D/wpa_supplicant( 774): Cancelling scan request
D/wpa_supplicant( 774): Cancelling authentication timeout
D/wpa_supplicant( 774): WEXT: Operstate: linkmode=0, operstate=6
W/WifiHW ( 708): Weber@wifi driver unloaded!
D/SettingsWifiEnabler( 812): Received wifi state changed from
Disabling to Disabled
I/ActivityManager( 708): Starting activity: Intent
{ act=android.intent.action.MAIN
cmp=com.android.settings/.wifi.WifiSettings }
D/SettingsWifiEnabler( 812): Received wifi state changed from
Disabling to Disabled
I/ActivityManager( 708): Displayed activity
com.android.settings/.wifi.WifiSettings: 705 ms (total 705 ms)
D/WifiService( 708): ACTION_BATTERY_CHANGED pluggedType: 1
D/SettingsWifiEnabler( 812): Received wifi state changed from
Disabled to Enabling
D/wpa_supplicant( 1132): Initializing interface 'eth1' conf '/system/
etc/wifi/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A'
bridge 'N/A'
D/wpa_supplicant( 1132): Configuration file '/system/etc/wifi/
wpa_supplicant.conf' -> '/system/etc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 1132): Reading configuration file '/system/etc/wifi/
wpa_supplicant.conf'
D/wpa_supplicant( 1132): ctrl_interface='eth1'
D/wpa_supplicant( 1132): update_config=1
D/wpa_supplicant( 1132): ap_scan=1
D/wpa_supplicant( 1132): Initializing interface (2) 'eth1'
D/wpa_supplicant( 1132): EAPOL: SUPP_PAE entering state DISCONNECTED
D/wpa_supplicant( 1132): EAPOL: KEY_RX entering state NO_KEY_RECEIVE
D/wpa_supplicant( 1132): EAPOL: SUPP_BE entering state INITIALIZE
D/wpa_supplicant( 1132): EAP: EAP entering state DISABLED
D/wpa_supplicant( 1132): EAPOL: External notification - portEnabled=0
D/wpa_supplicant( 1132): EAPOL: External notification - portValid=0
D/wpa_supplicant( 1132): SIOCGIWRANGE: WE(compiled)=22 WE(source)=15
enc_capa=0xf
D/wpa_supplicant( 1132): capabilities: key_mgmt 0xf enc 0xf
D/wpa_supplicant( 1132): WEXT: Operstate: linkmode=1, operstate=5
D/wpa_supplicant( 1132): Own MAC address: 00:1a:6b:a2:38:65
D/wpa_supplicant( 1132): wpa_driver_wext_set_wpa
D/wpa_supplicant( 1132): wpa_driver_wext_set_key: alg=0 key_idx=0
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 1132): wpa_driver_wext_set_key: alg=0 key_idx=1
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 1132): wpa_driver_wext_set_key: alg=0 key_idx=2
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 1132): wpa_driver_wext_set_key: alg=0 key_idx=3
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 1132): wpa_driver_wext_set_countermeasures
D/wpa_supplicant( 1132): wpa_driver_wext_set_drop_unencrypted
D/wpa_supplicant( 1132): Setting scan request: 0 sec 100000 usec
D/wpa_supplicant( 1132): Added interface eth1
D/wpa_supplicant( 1132): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 1132): RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1'
added
D/wpa_supplicant( 1132): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 1132): Wireless event: cmd=0x8b06 len=8
D/wpa_supplicant( 1132): State: DISCONNECTED -> SCANNING
I/wpa_supplicant( 1132): CTRL-EVENT-STATE-CHANGE id=-1 state=2
D/wpa_supplicant( 1132): Starting AP scan (broadcast SSID)
D/wpa_supplicant( 1132): Trying to get current scan results first
without requesting a new scan to speed up initial association
D/wpa_supplicant( 1132): Received 0 bytes of scan results (0 BSSes)
D/wpa_supplicant( 1132): Scan results: 0
I/wpa_supplicant( 1132): CTRL-EVENT-SCAN-RESULTS Ready
D/wpa_supplicant( 1132): No suitable AP found.
D/wpa_supplicant( 1132): Setting scan request: 0 sec 0 usec
D/wpa_supplicant( 1132): Starting AP scan (broadcast SSID)
D/wpa_supplicant( 1132): Scan requested (ret=0) - scan timeout 5
seconds
D/wpa_supplicant( 1132): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 1132): Wireless event: cmd=0x8b19 len=8
D/wpa_supplicant( 1132): Received 0 bytes of scan results (0 BSSes)
D/wpa_supplicant( 1132): Scan results: 0
I/wpa_supplicant( 1132): CTRL-EVENT-SCAN-RESULTS Ready
D/wpa_supplicant( 1132): No suitable AP found.
D/wpa_supplicant( 1132): Setting scan request: 5 sec 0 usec
D/wpa_supplicant( 1132): No enabled networks - do not scan
D/wpa_supplicant( 1132): State: SCANNING -> INACTIVE
I/wpa_supplicant( 1132): CTRL-EVENT-STATE-CHANGE id=-1 state=1
D/SettingsWifiEnabler( 812): Received wifi state changed from
Enabling to Enabled
E/SettingsWifiLayer( 812): Unable to scan for networks
E/SettingsWifiLayer( 812): Unable to scan for networks
E/SettingsWifiLayer( 812): Unable to scan for networks
V/WifiStateTracker( 708): Supplicant died unexpectedly
E/SettingsWifiLayer( 812): Unable to scan for networks

I really don't know what to do?,hope you can help me.Thank you !
--Weber

On May 27, 6:08 pm, Nicu Pavel <npa...@ituner.com> wrote:
> > Nicu Pavel wrote:
>
> >> The differences is that driver_wext.c expects thewifikernel driver
> >> to implement the SIOCSIWPRIV ioctl and respond toandroidcommands
> >> like RSSI, MACADDR etc, while driver_awext.c replies toandroid
> >> commands by using standard wireless extensions ioctls and works for
> >> mostwifidrivers.
> >> Basically driver_awext.c is a wrapper for driver_wext.c and only
> >> reimplements function wpa_driver_priv_driver_cmd().
>
> >> Direct link to the patch:
>
> >>http://www.linuxconsulting.ro/android/patches/0001-Added-a-separate-d...
>
> > I have done somenthing different using your code. Instead of creating a new
> > file just emulate the call in wext part
>
> >http://gitorious.org/flow-g1-5/platform_external_wpa_supplicant/commi...

Weber

unread,
Jul 20, 2010, 9:30:02 PM7/20/10
to android-porting, Nicu Pavel
By the way,after the modification ,I didn't use make to build the
whole system ,but just build it with mm and then copy wpa_cli
wpa_supplicant and wpa_client.so to the file system. Does this matter?
Thanks
--Weber
On May 27, 6:08 pm, Nicu Pavel <npa...@ituner.com> wrote:
> > Nicu Pavel wrote:
>
> >> The differences is that driver_wext.c expects thewifikernel driver
> >> to implement the SIOCSIWPRIV ioctl and respond toandroidcommands
> >> like RSSI, MACADDR etc, while driver_awext.c replies toandroid
> >> commands by using standard wireless extensions ioctls and works for
> >> mostwifidrivers.
> >> Basically driver_awext.c is a wrapper for driver_wext.c and only
> >> reimplements function wpa_driver_priv_driver_cmd().
>
> >> Direct link to the patch:
>
> >>http://www.linuxconsulting.ro/android/patches/0001-Added-a-separate-d...
>
> > I have done somenthing different using your code. Instead of creating a new
> > file just emulate the call in wext part
>
> >http://gitorious.org/flow-g1-5/platform_external_wpa_supplicant/commi...

Weber

unread,
Jul 20, 2010, 10:05:57 PM7/20/10
to android-porting, npa...@ituner.com
Hi
Just now I started the wpa_supplicant mannually, but is seem that it
can not be started,like this:
# wpa_supplicant -dd -Dwext -ieth1 -c /system/etc/wifi/
wpa_supplicant.conf&
# ioctl[SIOCSIWPMKSA]: Invalid argument
mkdir[ctrl_interface]: Permission denied

[1] + Done(255) wpa_supplicant -dd -Dwext -ieth1 -c /
system/etc/wifi/wpa_supplicant.conf
Then I grep and found that "mkdir[ctrl_interface]" is in
ctrl_iface_unix.c ,and what confused me is that it is not inside the"
ifdef ANDROID endif" but now I am using the android private socket.

by the way,Someone had mentioned in the groups that
wpa_supplicant/Android.mk

(3.1)

LOCAL_PATH := $(call my-dir)

WPA_BUILD_SUPPLICANT := true

ifneq ($(TARGET_SIMULATOR),true)

ifneq ($(BOARD_WPA_SUPPLICANT_DRIVER),)

WPA_BUILD_SUPPLICANT := true

CONFIG_DRIVER_$(BOARD_WPA_SUPPLICANT_DRIVER) = y

endif

(3.2) remove mark symbol, and look like this

########################

local_target_dir := $(TARGET_OUT)/etc/wifi

include $(CLEAR_VARS)

LOCAL_MODULE := wpa_supplicant.conf

LOCAL_MODULE_TAGS := user

LOCAL_MODULE_CLASS := ETC

LOCAL_MODULE_PATH := $(local_target_dir)

LOCAL_SRC_FILES := $(LOCAL_MODULE)

include $(BUILD_PREBUILT)

But in My wpa_supplicant/Android.mk WPA_BUILD_SUPPLICANT :=
false ,Does this matter?

Thank you!
--Weber
On Jul 21, 9:22 am, Weber <qvbs...@gmail.com> wrote:
> Hi,I read yourwifiportingguide ,and followed it
> modifiedwifi.c to loader my libertas.ko and libertas_sdio.ko
> and add the bellow in init.rc
>     setpropwifi.interface "eth1"
> #    chmod 0777 /data/system/wpa_supplicant
> #    chownwifiwifi/data/system/wpa_supplicant
> #    chownwifiwifi/data/system
> #    chownwifiwifi/data
> 5.
> service wpa_supplicant /system/bin/wpa_supplicant -dd -Dwext -ieth1 -
> c /system/etc/wifi/wpa_supplicant.conf
> socket wpa_eth1 dgram 777wifiwifi
> group systemwifiinet
> disabled
> oneshot
>
> the others are the same as the uinx socket.
> but it still can not connnect.
>
> the logs :
> I/PackageManager(  708): Features:android.hardware.wifiandroid.hardware.location.networkandroid.hardware.bluetoothandroid.hardware.locationandroid.hardware.location.gpsandroid.hardware.touchscreenandroid.hardware.sensor.accelerometerandroid.hardware.sensor.compass
> V/ConnectivityService(  708): Starting
> ...
>
> read more »

Ashwin Bihari

unread,
Jul 20, 2010, 10:40:05 PM7/20/10
to qvb...@gmail.com, android-porting, npa...@ituner.com
Weber,

This is exactly what I faced when I recently tried to get the WiFi up
and running on my Eclair based device..I had everything up and running
on Donut and I copied the configuration and all and kept getting these
'permission denied' and 'operation not permitted' with the chown/mkdir
related to ctrl_interface and so on..

After monkeying with the wpa_supplicant.conf file and the init.rc file
with the various user/group permissions..just on a whim I decided to
do a diff between the older wpa_supplicant code and the new one and
there were a few differences..I just brought back all of the older
wpa_supplicant code and BOOM WiFi was up and running in Eclair..

I think wpa_supplicant is somehow broken in Eclair and needs to be
patched to work..I'll have to go through my diff step by step and
figure out what exactly breaks things..and I might do that over the
next few weeks..

Regards
-- Ashwin

Weber

unread,
Jul 22, 2010, 9:37:29 AM7/22/10
to android-porting, abi...@gmail.com
Hi Ashwin
I tried the wpa_supplicant code of donut ,and then problem went
away.

Now my board can scan the ap and return the results, but it still can
not connect to ap.
Maybe it is because of the dhcp

and in init.rc,My dhcp service is started by the follow line:

service dhcpcd /system/bin/dhcpcd -f /system/etc/dhcpcd/dhcpcd.conf -
d eth1
group system dhcp wifi
disabled
oneshot

but it seems that it can not work, the logs are:
D/WifiStateTracker( 713): Deconfiguring interface and stopping DHCP
D/WifiStateTracker( 713): DhcpHandler: DHCP request started
I/WifiStateTracker( 713): DhcpHandler: DHCP request failed: Timed out
waiting for DHCP to finish
V/WifiStateTracker( 713): Changing supplicant state: COMPLETED ==>
DORMANT
D/WifiStateTracker( 713): Deconfiguring interface and stopping DHCP

and I started the dhcp manually, it says:flock
# dhcpcd -f /system/etc/dhcpcd/dhcpcd.conf -d eth1
eth1: flock `/data/misc/dhcp/dhcpcd-eth1.pid': Try again

Could you give me some clue?
Thanks!
--Weber
On Jul 21, 10:40 am, Ashwin Bihari <abih...@gmail.com> wrote:
> Weber,
>
> This is exactly what I faced when I recently tried to get theWiFiup
> and running on my Eclair based device..I had everything up and running
> on Donut and I copied the configuration and all and kept getting these
> 'permission denied' and 'operation not permitted' with the chown/mkdir
> related to ctrl_interface and so on..
>
> After monkeying with the wpa_supplicant.conf file and the init.rc file
> with the various user/group permissions..just on a whim I decided to
> do a diff between the older wpa_supplicant code and the new one and
> there were a few differences..I just brought back all of the older
> wpa_supplicant code and BOOMWiFiwas up and running in Eclair..
>
> I think wpa_supplicant is somehow broken in Eclair and needs to be
> patched to work..I'll have to go through my diff step by step and
> figure out what exactly breaks things..and I might do that over the
> next few weeks..
>
> Regards
> -- Ashwin
>
> On Tue, Jul 20, 2010 at 10:05 PM, Weber <qvbs...@gmail.com> wrote:
> > Hi
> > Just now I started the wpa_supplicant mannually, but is seem that it
> > can not be started,like this:
> > # wpa_supplicant -dd -Dwext -ieth1 -c /system/etc/wifi/
> > wpa_supplicant.conf&
> > # ioctl[SIOCSIWPMKSA]: Invalid argument
> > mkdir[ctrl_interface]: Permission denied
>
> > [1] + Done(255)                  wpa_supplicant -dd -Dwext -ieth1 -c /
> > system/etc/wifi/wpa_supplicant.conf
> > Then I grep and found that "mkdir[ctrl_interface]" is in
> > ctrl_iface_unix.c ,and what confused me is that it is not inside the"
> > ifdefANDROIDendif" but now I am using theandroidprivate socket.
> ...
>
> read more »

Ashwin Bihari

unread,
Jul 22, 2010, 9:52:10 AM7/22/10
to Weber, android-porting
Weber,

I have the following in my init.rc file associated with brining up the
WiFi interface:

#-----
service wpa_supplicant /system/bin/logwrapper
/system/bin/wpa_supplicant -Dwext -iwlan0
-c/system/etc/wifi/wpa_supplicant.conf -dd
disabled
group system

service dhcpcd /system/bin/logwrapper /system/bin/dhcpcd -d wlan0
disabled
oneshot
#group system dhcp
#------

My interface is called wlan0..

-- Ashwin

Weber

unread,
Jul 23, 2010, 9:07:23 AM7/23/10
to android-porting
Thanks,Ashwin
At last I found that it was caused by the permission of /system/etc/
dhcpcd/dhcpcd-run-hooks
I changed it ,and now it can get the ip addr and connect,I can use
iwconfig to see the info or eth1
# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

usb0 no wireless extensions.

eth1 IEEE 802.11b/g ESSID:"Antrose-11g"
Mode:Managed Frequency:2.437 GHz Access Point: 00:15:E9:0C:
87:7C
Bit Rate:1 Mb/s Tx-Power=13 dBm
Retry limit:8 RTS thr=2347 B Fragment thr=2346 B
Encryption key:off
Power Management:off
Link Quality=84/100 Signal level=-57 dBm Noise level=-92
dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:108
Tx excessive retries:58 Invalid misc:12279 Missed beacon:
0

# ifconfig
eth0 Link encap:Ethernet HWaddr 00:22:12:34:56:90
inet addr:192.168.10.123 Bcast:192.168.10.255 Mask:
255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:74 Base address:0x300

eth1 Link encap:Ethernet HWaddr 00:1A:6B:A2:38:65
inet addr:192.168.10.69 Bcast:192.168.10.255 Mask:
255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:255 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22342 (21.8 KiB) TX bytes:1236 (1.2 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

But the signal bar on the top seem to be none(actually in settin->
wireless & networks->wifi settings,the signal bar is 2/3 full )
So I found that I can not access the internet.
So could you tell me why? Is becuase of the signal or something else
such as eth0(defualt to use eth0? I don't know)?

Thankyou
--Weber
On Jul 22, 9:52 pm, Ashwin Bihari <abih...@gmail.com> wrote:
> Weber,
>
> I have the following in my init.rc file associated with brining up the
> WiFi interface:
>
> #-----
> service wpa_supplicant /system/bin/logwrapper
> /system/bin/wpa_supplicant -Dwext -iwlan0
> -c/system/etc/wifi/wpa_supplicant.conf -dd
>     disabled
>     group system
>
> service dhcpcd /system/bin/logwrapper /system/bin/dhcpcd -d wlan0
>     disabled
>     oneshot
>     #group system dhcp
> #------
>
> My interface is called wlan0..
>
> -- Ashwin
>
> ...
>
> read more »

Weber

unread,
Jul 23, 2010, 9:51:06 AM7/23/10
to android-porting
Hi,website access through wifi is really caused by eth0
After disabling the eth0
#ifconfig eth0 down
I can surffing the Internet now
Thank you all !
--Weber
> ...
>
> read more »

guru

unread,
Aug 13, 2010, 12:59:14 AM8/13/10
to android-porting
Hi Ashwin,

I am trying to enable wifi in froyo. when i try to enable wifi is
getting enabled but I am unable to connect to AP.
for IP configuration I am getting 0.0.0.0 entries for many
fields(below)

V/WifiStateTracker( 1010): IP configuration: ipaddr 0.0.0.0 gateway
0.0.0.0 netmask 0.0.0.0 dns1 10.50.201.5 dns2 125.22.47.125 DHCP
server 0.0.0.0 lease 1111074324 seconds

if i see dhcpcd logs, it is getting IP address, lease gateway
information from the server but these fields are not getting updated.

dhcpcd 4.0.15 starting
D/dhcpcd ( 1226): hardware address = 00:24:23:10:f5:37
D/dhcpcd ( 1226): executing `/system/etc/dhcpcd/dhcpcd-run-hooks',
reason PREINIT
D/dhcpcd ( 1226): host does not support a monotonic clock - timing
can skew
D/dhcpcd ( 1226): broadcasting for a lease
D/dhcpcd ( 1226): sending DHCP_DISCOVER with xid 0x8ef31cc, next in
4.77 seconds
D/dhcpcd ( 1226): offered 10.50.200.53 from 10.50.200.5
D/dhcpcd ( 1226): sending DHCP_REQUEST with xid 0x8ef31cc, next in
4.48 seconds
D/Exchange( 1216): BootReceiver onReceive
D/dhcpcd ( 1226): acknowledged 10.50.200.53 from 10.50.200.5
D/dhcpcd ( 1226): leased 10.50.200.53 for 86400 seconds
D/dhcpcd ( 1226): adding IP address 10.50.200.53/24
D/dhcpcd ( 1226): adding route to 0.0.0.0/0 via 10.50.200.1
D/dhcpcd ( 1226): executing `/system/etc/dhcpcd/dhcpcd-run-hooks',
reason BOUND
V/WifiStateTracker( 1010): DhcpHandler: DHCP request succeeded

Please let me know where I am going wrong.

Thanks
Gururaja B O

On Jul 22, 6:52 pm, Ashwin Bihari <abih...@gmail.com> wrote:
> Weber,
>
> I have the following in my init.rc file associated with brining up the
> WiFi interface:
>
> #-----
> service wpa_supplicant /system/bin/logwrapper
> /system/bin/wpa_supplicant -Dwext -iwlan0
> -c/system/etc/wifi/wpa_supplicant.conf -dd
>     disabled
>     group system
>
> service dhcpcd /system/bin/logwrapper/system/bin/dhcpcd -d wlan0
>     disabled
>     oneshot
>     #group system dhcp
> #------
>
> My interface is called wlan0..
>
> -- Ashwin
>
> ...
>
> read more »

guru

unread,
Aug 23, 2010, 2:02:32 AM8/23/10
to android-porting
Hi Weber

to what permission i need to change?. current my system is showing

# cd dhcpcd
# ls -l
drwxr-xr-x root root 2010-08-19 07:56 dhcpcd-hooks
-rwxrwxrwx root shell 1009 2010-08-19 07:00 dhcpcd-run-
hooks
-rw-r--r-- root root 189 2010-08-19 07:20 dhcpcd.conf


From logs i am getting same issue permission denied. this is in
froyo.

D/dhcpcd ( 1412): sending DHCP_DISCOVER with xid 0xeb49aec1, next in
32.75 seconds
E/dhcpcd ( 1412): timed out
D/dhcpcd ( 1412): executing `/system/etc/dhcpcd/dhcpcd-run-hooks',
reason FAIL
I//system/bin/dhcpcd( 1411): [: permission denied
D/dhcpcd ( 1412): broadcasting for a lease
D/dhcpcd ( 1412): sending DHCP_DISCOVER with xid 0x93facc20, next in
4.76 seconds
I/WifiStateTracker( 1010): DhcpHandler: DHCP request failed: DHCP
result was failed
> > > and in init.rc,My  dhcpservice is started by the follow line:
>
> > >  service dhcpcd /system/bin/dhcpcd -f /system/etc/dhcpcd/dhcpcd.conf -
> > > d eth1
> > >  group systemdhcpwifi
> > >  disabled
> > >  oneshot
>
> > > but it seems that it can not work, the logs are:
> > > D/WifiStateTracker(  713): Deconfiguring interface and stoppingDHCP
> > > D/WifiStateTracker(  713): DhcpHandler:DHCPrequeststarted
> > > I/WifiStateTracker(  713): DhcpHandler:DHCPrequestfailed: Timed out
> > > waiting forDHCPto finish
> > > V/WifiStateTracker(  713): Changing supplicant state: COMPLETED ==>
> > > DORMANT
> > >  D/WifiStateTracker(  713): Deconfiguring interface and stoppingDHCP
>
> > > and I started thedhcpmanually, it says:flock
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages