OSDN Git Service

Transient patch for the WifiConfiguration change.
authorChung-yih Wang <cywang@google.com>
Mon, 14 Sep 2009 06:25:09 +0000 (14:25 +0800)
committerChung-yih Wang <cywang@google.com>
Mon, 14 Sep 2009 06:25:09 +0000 (14:25 +0800)
Comment out the access to the enterprise fields of
WifiConfiguration class in AccessPointState class.
And will have a new patch for accessing the new WifiConfiguration.

src/com/android/settings/wifi/AccessPointState.java

index a3cf6b4..f842b7e 100644 (file)
@@ -504,6 +504,7 @@ public final class AccessPointState implements Comparable<AccessPointState>, Par
         config.priority = priority;
         config.hiddenSSID = hiddenSsid;
         config.SSID = convertToQuotedString(ssid);
+/*
         config.eap = mEap;
 
         if (!TextUtils.isEmpty(mPhase2)) {
@@ -547,6 +548,7 @@ public final class AccessPointState implements Comparable<AccessPointState>, Par
         } else {
             config.privateKeyPasswd = null;
         }
+*/
         setupSecurity(config);
     }
     
@@ -622,7 +624,7 @@ public final class AccessPointState implements Comparable<AccessPointState>, Par
                 config.allowedKeyManagement.set(KeyMgmt.IEEE8021X);
             }
             if (!TextUtils.isEmpty(mPassword)) {
-                config.password = convertToQuotedString(mPassword);
+//                config.password = convertToQuotedString(mPassword);
             }
         }
     }