WifiService: allow EAP variables to be unset using empty strings.

This commit is contained in:
Chia-chi Yeh
2010-01-29 16:26:28 +08:00
parent a9938c4bf4
commit 784d53e79b

View File

@@ -923,7 +923,7 @@ public class WifiService extends IWifiManager.Stub {
String value = field.value();
if (value != null) {
if (field != config.eap) {
value = convertToQuotedString(value);
value = (value.length() == 0) ? "NULL" : convertToQuotedString(value);
}
if (!WifiNative.setNetworkVariableCommand(
netId,