Allow space in SSID

Bug: 2530930
Change-Id: Iaa6c44014d889ad0d023148b091fc01c22524bf3
This commit is contained in:
Irfan Sheriff
2010-03-19 15:55:58 -07:00
parent e5e63f4921
commit 723f109729

View File

@@ -483,8 +483,8 @@ class NetworkManagementService extends INetworkManagementService.Stub {
* argv7 - Preamble
* argv8 - Max SCB
*/
String str = String.format("softap set " + wlanIface + " " + softapIface + " %s %s %s",
wifiConfig.SSID,
String str = String.format("softap set " + wlanIface + " " + softapIface +
" \"%s\" %s %s", wifiConfig.SSID,
wifiConfig.allowedKeyManagement.get(KeyMgmt.WPA_PSK) ?
"wpa2-psk" : "open",
wifiConfig.preSharedKey);
@@ -511,7 +511,7 @@ class NetworkManagementService extends INetworkManagementService.Stub {
mConnector.doCommand(String.format("softap set " + wlanIface + " " + softapIface));
} else {
String str = String.format("softap set " + wlanIface + " " + softapIface +
" %s %s %s", wifiConfig.SSID,
" \"%s\" %s %s", wifiConfig.SSID,
wifiConfig.allowedKeyManagement.get(KeyMgmt.WPA_PSK) ?
"wpa2-psk" : "open",
wifiConfig.preSharedKey);