Bug 884190 - [Bluetooth] Rename commands from dom bluetooth to Dialer app (in dom bluetooth), r=echou
authorBen Tian <btian@mozilla.com>
Mon, 01 Jul 2013 11:04:02 +0800
changeset 144785 2eddca08eac08d7e69afd9e23bdc3db5689057ab
parent 144784 c587c8326c62c7e572db093b159cfffa05b0c730
child 144786 f0a3fca0967452c8229e11498e4a589fcf18b214
push idunknown
push userunknown
push dateunknown
reviewersechou
bugs884190
milestone25.0a1
Bug 884190 - [Bluetooth] Rename commands from dom bluetooth to Dialer app (in dom bluetooth), r=echou
dom/bluetooth/BluetoothHfpManager.cpp
--- a/dom/bluetooth/BluetoothHfpManager.cpp
+++ b/dom/bluetooth/BluetoothHfpManager.cpp
@@ -805,19 +805,19 @@ BluetoothHfpManager::ReceiveSocketData(B
       NS_WARNING("The value of command [AT+CHLD] is not supported");
       valid = false;
     } else if (chld == '0') {
       // We need to rename these dialer commands for better readability
       // and expandability.
       // See bug 884190 for more information.
       NotifyDialer(NS_LITERAL_STRING("CHLD=0"));
     } else if (chld == '1') {
-      NotifyDialer(NS_LITERAL_STRING("CHUP+ATA"));
+      NotifyDialer(NS_LITERAL_STRING("CHLD=1"));
     } else if (chld == '2') {
-      NotifyDialer(NS_LITERAL_STRING("CHLD+ATA"));
+      NotifyDialer(NS_LITERAL_STRING("CHLD=2"));
     } else {
       NS_WARNING("Wrong value of command [AT+CHLD]");
       valid = false;
     }
 
     if (!valid) {
       SendLine("ERROR");
       return;