[android-porting] Re: Android eclair 2.1 - problem to get dns through dhcpcd in wifi network

2010-05-19 Thread supermaximus79
Solved. The problem was because there wasn't dhcpcd.conf file on my file system. i don't know why, but by default it is commented in Android.mk On May 18, 1:12 pm, supermaximus79 andruschenk...@mail.ru wrote: Hello Robert! Today i debugged 20-dns.conf script and found the problem. It's a

Re: [android-porting] Re: Android eclair 2.1 - problem to get dns through dhcpcd in wifi network

2010-05-19 Thread Robert Greenwalt
weird - I checked my devices and it is of course present.. If you know the default build comments it out you could file a bug against it. Sry about the hassle and congratulations on your progress! R On Wed, May 19, 2010 at 11:17 AM, supermaximus79 andruschenk...@mail.ruwrote: Solved. The

Re: [android-porting] Re: Android eclair 2.1 - problem to get dns through dhcpcd in wifi network

2010-05-19 Thread Robert Greenwalt
On Wed, May 19, 2010 at 1:16 PM, supermaximus79 andruschenk...@mail.ruwrote: Solution. 1) Open external/dhcpcd/Android.mk and uncomment next lines: include $(CLEAR_VARS) LOCAL_MODULE := dhcpcd.conf LOCAL_MODULE_TAGS := user LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_PATH := $(etc_dir)

[android-porting] Re: Android eclair 2.1 - problem to get dns through dhcpcd in wifi network

2010-05-17 Thread supermaximus79
I have found what the problem with! DHCPCD calls script dhcp-run-hooks, which also calls 20-dns.conf script. 20-dns.conf script set DNS property this way: setprop dhcp.${interface}.dns${count} ${dnsaddr} in my case it will be: setprop dhcp.wlan0.dns1 77.120.130.20 - but this doesn't work in

Re: [android-porting] Re: Android eclair 2.1 - problem to get dns through dhcpcd in wifi network

2010-05-17 Thread Robert Greenwalt
the net.dns1 property is set by the ConnectivityService when it switches networks. The WifiStateTracker is supposed to give the ConnectivityService a list of properties it uses to store dns values and then the CS will copy them when appropriate. You should verify that your WifiStateTracker is

[android-porting] Re: Android eclair 2.1 - problem to get dns through dhcpcd in wifi network

2010-05-17 Thread supermaximus79
Thanks! I verified in WifiStateTracker constructor interfaces names, here they are: DNS1 = dhcp.wlan0.dns1 DNS2 = dhcp.wlan0.dns2 Looks like everything is ok But still there is empty DNS. My logs: init: starting 'wpa_supplicant' D/WifiService( 1731): ACTION_BATTERY_CHANGED pluggedType: 1

Re: [android-porting] Re: Android eclair 2.1 - problem to get dns through dhcpcd in wifi network

2010-05-17 Thread Robert Greenwalt
Your WifiStateTracker reports: V/WifiStateTracker( 1731): IP configuration: ipaddr 192.168.1.101 gateway 192.168.1.1 netmask 255.255.255.0 dns1 0.0.0.0 dns2 0.0.0.0 DHCP server 192.168.1.1 lease 7200 seconds so the mDhcpInfo object seems to not know what's up regarding dns. Can you include the