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 wrote: > 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) > LOCAL_SRC_FILES :=

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

2010-05-19 Thread supermaximus79
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) LOCAL_SRC_FILES := android.conf include $(BUILD_PREBUILT) by default they are commented. 2

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 wrote: > Solved. The problem was because there

[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 wrote: > Hello Robert! > Today i debugged 20-dns.conf script and found the problem. > It's a content of 20-dns.conf sc

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

2010-05-18 Thread supermaximus79
Hello Robert! Today i debugged 20-dns.conf script and found the problem. It's a content of 20-dns.conf script, i included some debug messages: set_dns_props() { echo "executing SET_DNS_PROPS" case "${new_domain_name_servers}" in "") return 0;; esac echo "AFTER 1" count=

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 s

[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 E/WifiH

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 tel

[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 Andr