DHCP Address on WiFi

by Ashwin Bihari » Wed, 10 Feb 2010 22:51:16 GMT


Sponsored Links
 Greetings,

I have a board with onboard WiFi available through the SDIO slot. I've
got the appropriate Kernel driver made available within Android 1.6
and through numerous searches have figured out what I need to do to
get wpa_supplicant to come up and stay up. I can now goto the Android
Network control settings area, turn on WiFi and can get a list of
wireless AP's in my area. The piece that seems to be eluding me is
DHCP. I get a message of "init: no service 'dhcpcd'" on the screen
while Android is trying to obtain an address and it eventually times
out and gives up..

I've also got a regular Ethernet port on this device and in my init.rc
file, I'm running ethmonitor on that device and when I plug in a RJ45
cable, I immediately get the DHCP functionality to occur and an IP
address to be assigned to me..

I have, however, tried to manually start /system/bin/dhcpcd on my WiFi
device of wlan0 and that seems to kick start the DHCP process and it
does get an address, but once added, the WiFi device removes that
address..

What are the correct steps in getting the IP address assigned through
DHCP to my WiFi interface??

Regards
-- Ashwin

-- 



DHCP Address on WiFi

by Qipeng » Wed, 10 Feb 2010 23:37:52 GMT


 hi, Ashwin

there is some questions for your check.

(1) is there the right dhcp conf file on your file system? pay
attention to the interface of network, such as eth0 or wlan0.
(2) in your init.rc, is the dhcp set to the right permission, or a
proper directory for the temp data of dhcp?

good luck to you.




-- 


Sponsored Links


DHCP Address on WiFi

by Ashwin Bihari » Thu, 11 Feb 2010 08:15:20 GMT


 Hi Qipeng,

I added a dhcpcd.conf file to the 'system/etc/dhcpcd' directory and it
simply contains:

      # dhcpcd configuration for Android Wi-Fi interface
      # See dhcpcd.conf(5) for details.

      interface wlan0
      # dhcpcd-run-hooks uses these options.
      option subnet_mask, routers, domain_name_servers

In my init.rc file, I have a line to start up wpa_supplicant and
another to start up dhcpcd on the wlan0 device.

When I login to the device and type "ps", I see the various services
that I'm starting up from init.rc, but I don't see the dhcpcd service.
Should I have to create the directory where dhcpcd stores it's leases
and all that as well?

Is there some document that describes ALL the pieces that I need to
setup for this to completely work? I appreciate the help..

Regards
-- Ashwin







-- 



DHCP Address on WiFi

by Qipeng » Thu, 11 Feb 2010 10:56:11 GMT


 hi,

now i remember a URL about this, it will be useful for you i think.

Japanese web:
 http://labs.beatcraft.com/ja/index.php?bc9 %2FSoftware%2FAndroid%2FAndroid-1.5r3#ed198993






-- 



DHCP Address on WiFi

by Ashwin Bihari » Sat, 13 Feb 2010 03:35:20 GMT


 i Qipeng,

That link was VERY useful and allowed me to get everything
operational. I had all the pieces together except the trigger in
WiFi.c to cause the dhcpcd to start up when I felt the WiFi device was
available..

Thanks
-- Ashwin



On Wed, Feb 10, 2010 at 9:31 PM, Qipeng <zhang.qip...@furuno-dl.com> wrote:

--



Other Threads

1. How can I get rid of Donut and go back to Cupcake?

Donut landed on my G1, great!

Until I tried to use my phone; Voice Search is broken, Co-Pilot sat
nav is broken, Bluetooth address book transfer is broken for my hands-
free in the car.

Apart from making phone calls, all the stuff I need to do on my phone
has stopped working.

Is there any way to get rid of Donut until it's fixed?

--~--~---------~--~----~------------~-------~--~----~

2. IP, GPRS in Android

Hi all,
I want to know where is the code which handles GPRS and GSM. As far as
i know there are various layers in GPRS. I want to know which are in
hardware and which are implemented in software(and where in the
code).

thanks,
Anurag.




--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Buat yg seneng firefox.

4. Do available phones take advantage of intents?

5. preference screen background

6. Error: MediaPlayer start called in state 64

7. Animate the resize (not scale) of a view or layout?