After I turn on Wi-Fi in android 2.2, it can connect to an AP thru DHCP,
but I found its DNS server address is not present, the phone's property:
[wlan.driver.status]: [ok]
[init.svc.wpa_supplicant]: [running]
[net.dnschange]: [2]
[init.svc.dhcpcd]: [running]
[dhcp.wlan0.result]: [ok]
[dhcp.wlan0.pid]: [1783]
[dhcp.wlan0.reason]: [BOUND]
[dhcp.wlan0.ipaddress]: [192.168.1.113]
[dhcp.wlan0.gateway]: [192.168.1.1]
[dhcp.wlan0.mask]: [255.255.255.0]
[dhcp.wlan0.leasetime]: [7200]
[dhcp.wlan0.server]: [192.168.1.1]
The kernel log:
------------------------------------------------------------------------
-------
DUMP OF SERVICE connectivity:
NetworkInfo: type: mobile[UNKNOWN], state: UNKNOWN/IDLE, reason:
(unspecified), extra: (none), roaming: false, failover: false,
isAvailable: false
Mobile data state: DISCONNECTED
Active network: WIFI
NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason:
(unspecified), extra: (none), roaming: false, failover: false,
isAvailable: true
interface wlan0 runState=Running
SSID: UMTSSW, BSSID: 00:19:e0:d2:43:50, MAC: 00:0a:f5:89:89:ff,
Supplicant state: COMPLETED, RSSI: -65, Link speed: 9, Net ID: 0
ipaddr 192.168.1.113 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
haveIpAddress=true, obtainingIpAddress=false, scanModeActive=false
lastSignalLevel=2, explicitlyDisabled=false
NetworkInfo: type: mobile_mms[UNKNOWN], state: UNKNOWN/IDLE, reason:
(unspecified), extra: (none), roaming: false, failover: false,
isAvailable: false
Mobile data state: DISCONNECTED
NetworkInfo: type: mobile_supl[UNKNOWN], state: UNKNOWN/IDLE, reason:
(unspecified), extra: (none), roaming: false, failover: false,
isAvailable: false
Mobile data state: DISCONNECTED
NetworkInfo: type: mobile_hipri[UNKNOWN], state: UNKNOWN/IDLE, reason:
(unspecified), extra: (none), roaming: false, failover: false,
isAvailable: false
Mobile data state: DISCONNECTED
Network Requester Pids:
5:
3:
2:
1:
0:
FeatureUsers:
Tether state:
------------------------------------------------------------------------
-------
------------------------------------------------------------------------
-------
DUMP OF SERVICE wifi:
Wi-Fi is enabled
Stay-awake conditions: 0
Internal state:
interface wlan0 runState=Running
SSID: UMTSSW, BSSID: 00:19:e0:d2:43:50, MAC: 00:0a:f5:89:89:ff,
Supplicant state: COMPLETED, RSSI: -65, Link speed: 9, Net ID: 0
ipaddr 192.168.1.113 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
haveIpAddress=true, obtainingIpAddress=false, scanModeActive=false
lastSignalLevel=2, explicitlyDisabled=false
Latest scan results:
BSSID Frequency RSSI Flags SSID
00:19:e0:d2:43:50 2457 -62 [WEP] UMTSSW
Locks acquired: 0 full, 0 scan
Locks released: 0 full, 0 scan
Locks held:
------------------------------------------------------------------------
-------
Does anybody have a good idea to work out it?
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.