diff --git a/res/layout/wifi_config_preference.xml b/res/layout/wifi_config_preference.xml
index f19a9ec867e..6103fb990f3 100644
--- a/res/layout/wifi_config_preference.xml
+++ b/res/layout/wifi_config_preference.xml
@@ -232,6 +232,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="true"
+ android:inputType="textNoSuggestions"
android:hint="@string/proxy_hostname_hint" />
@@ -288,6 +291,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="true"
+ android:hint="wifi_ip_address_hint"
android:inputType="textNoSuggestions" />
+ android:hint="wifi_network_prefix_length_hint"
+ android:inputType="number" />
diff --git a/res/layout/wifi_dialog.xml b/res/layout/wifi_dialog.xml
index 7d199bdd362..f502d6d49da 100644
--- a/res/layout/wifi_dialog.xml
+++ b/res/layout/wifi_dialog.xml
@@ -227,6 +227,7 @@
@@ -237,6 +238,7 @@
@@ -247,6 +249,7 @@
@@ -278,6 +281,7 @@
@@ -290,6 +294,7 @@
@@ -302,7 +307,8 @@
+ android:hint="@string/wifi_network_prefix_length_hint"
+ android:inputType="number" />
@@ -313,6 +319,7 @@
@@ -325,6 +332,7 @@
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 0b39a2cfcd5..374b8dfe186 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -1092,6 +1092,8 @@
Link speed
IP address
+
+ 192.168.1.128
EAP method
@@ -1171,12 +1173,20 @@
Please type a network prefix length between 0 and 32.
DNS 1
+
+ 8.8.8.8
DNS 2
+
+ 4.4.4.4
Gateway
+
+ 192.168.1.1
Network prefix length
+
+ 24
diff --git a/src/com/android/settings/wifi/WifiConfigController.java b/src/com/android/settings/wifi/WifiConfigController.java
index 3efedf604f9..0d24298865b 100644
--- a/src/com/android/settings/wifi/WifiConfigController.java
+++ b/src/com/android/settings/wifi/WifiConfigController.java
@@ -198,11 +198,6 @@ public class WifiConfigController implements TextWatcher,
WifiInfo info = mAccessPoint.getInfo();
if (info != null) {
addRow(group, R.string.wifi_speed, info.getLinkSpeed() + WifiInfo.LINK_SPEED_UNITS);
- // TODO: fix the ip address for IPv6.
- int address = info.getIpAddress();
- if (address != 0) {
- addRow(group, R.string.wifi_ip_address, Formatter.formatIpAddress(address));
- }
}
if (mAccessPoint.networkId != INVALID_NETWORK_ID) {
@@ -211,6 +206,10 @@ public class WifiConfigController implements TextWatcher,
mIpSettingsSpinner.setSelection(STATIC_IP);
} else {
mIpSettingsSpinner.setSelection(DHCP);
+ //Display IP addresses
+ for(InetAddress a : config.linkProperties.getAddresses()) {
+ addRow(group, R.string.wifi_ip_address, a.getHostAddress());
+ }
}
if (config.proxySettings == ProxySettings.STATIC) {