commit | 8c023955f7d6af480241ffd9b4a5532a447f4e1f | [log] [tgz] |
---|---|---|
author | Yang Liu <yangxliu@google.com> | Fri Aug 14 16:09:35 2015 -0700 |
committer | Yang Liu <yangxliu@google.com> | Fri Aug 14 16:15:54 2015 -0700 |
tree | 9562ceb6929dc1d96a103f113d149cf4e57b5d4f | |
parent | 8c8bcd6d771510582dfefb3374532a2c5c278aec [diff] |
Add support for WiFi tethering: allow no password. Change-Id: I91690886fc44eddaff5882283439c50ae3ee71cb
diff --git a/Common/src/com/googlecode/android_scripting/facade/wifi/WifiManagerFacade.java b/Common/src/com/googlecode/android_scripting/facade/wifi/WifiManagerFacade.java index f233e0f..99ef3f2 100755 --- a/Common/src/com/googlecode/android_scripting/facade/wifi/WifiManagerFacade.java +++ b/Common/src/com/googlecode/android_scripting/facade/wifi/WifiManagerFacade.java
@@ -739,7 +739,7 @@ public Boolean wifiIsScannerSupported() { return mWifi.isWifiScannerSupported(); } - + @Rpc(description = "Check if tdls is supported on this device.") public Boolean wifiIsTdlsSupported() { return mWifi.isTdlsSupported(); @@ -819,7 +819,7 @@ config.SSID = ssid.substring(1, ssid.length() - 1); } String pwd = config.preSharedKey; - if (ssid != null) { + if (pwd != null) { config.preSharedKey = pwd.substring(1, pwd.length() - 1); } return mWifi.setWifiApEnabled(config, enable);