diff options
author | Roshan Pius <rpius@google.com> | 2017-04-12 17:13:28 -0700 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2017-04-12 17:25:58 -0700 |
commit | d5a56317c4697aab6fc8c277ba33dbce6542db79 (patch) | |
tree | bf91e9b1dfe5c2364b02aafb840aa35446bc5ca3 /service | |
parent | 911facd2a26141efe5f242e11a07a9d84a45749a (diff) |
SupplicantP2pIfaceCallback: Remove quotes around network name
This is needed to maintain backward compatibility with previous
releases.
Bug: 37286961
Test: Unit tests
Change-Id: Ie40bfecfbb302cb4f5e93695d9a2e60f8c405c56
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/p2p/SupplicantP2pIfaceCallback.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/p2p/SupplicantP2pIfaceCallback.java b/service/java/com/android/server/wifi/p2p/SupplicantP2pIfaceCallback.java index 836898d7f..5f4cb1773 100644 --- a/service/java/com/android/server/wifi/p2p/SupplicantP2pIfaceCallback.java +++ b/service/java/com/android/server/wifi/p2p/SupplicantP2pIfaceCallback.java @@ -271,7 +271,8 @@ public class SupplicantP2pIfaceCallback extends ISupplicantP2pIfaceCallback.Stub group.setInterface(groupIfName); try { - group.setNetworkName(NativeUtil.encodeSsid(ssid)); + String quotedSsid = NativeUtil.encodeSsid(ssid); + group.setNetworkName(NativeUtil.removeEnclosingQuotes(quotedSsid)); } catch (Exception e) { Log.e(TAG, "Could not encode SSID.", e); return; |