OSDN Git Service

Make the SSID field of WifiConfiguration consistent with API description.
authorChung-yih Wang <cywang@google.com>
Sat, 15 May 2010 03:03:30 +0000 (11:03 +0800)
committerChung-yih Wang <cywang@google.com>
Sat, 15 May 2010 03:03:30 +0000 (11:03 +0800)
Bug id http://b/issue?id=2684571

Change-Id: I809478991ba606252d69ef007339754ab2856416

services/java/com/android/server/WifiService.java

index c0a4491..8d6ad93 100644 (file)
@@ -872,7 +872,7 @@ public class WifiService extends IWifiManager.Stub {
 
         value = mWifiStateTracker.getNetworkVariable(netId, WifiConfiguration.ssidVarName);
         if (!TextUtils.isEmpty(value)) {
-            config.SSID = removeDoubleQuotes(value);
+            config.SSID = value;
         } else {
             config.SSID = null;
         }
@@ -1062,7 +1062,7 @@ public class WifiService extends IWifiManager.Stub {
                     !mWifiStateTracker.setNetworkVariable(
                         netId,
                         WifiConfiguration.ssidVarName,
-                        convertToQuotedString(config.SSID))) {
+                        config.SSID)) {
                 if (DBG) {
                     Slog.d(TAG, "failed to set SSID: "+config.SSID);
                 }