Bug 869337 - Fix missing At comman reply OK after +COPS, r=gyeh, r=echou
authorShawn Huang <shuang@mozilla.com>
Fri, 10 May 2013 13:46:50 +0800
changeset 142435 b1c6b87e6e5b1056b941f162fb060e40fbcd513a
parent 142434 ff15e9b25bdd7a7a0599221f487b72520dd11551
child 142436 faf47bc87fffd6e781ba090bc18d9bcf3b8dd35d
push id2579
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 18:52:47 +0000
treeherdermozilla-beta@b69b7de8a05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgyeh, echou
bugs869337
milestone23.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 869337 - Fix missing At comman reply OK after +COPS, r=gyeh, r=echou
dom/bluetooth/BluetoothHfpManager.cpp
--- a/dom/bluetooth/BluetoothHfpManager.cpp
+++ b/dom/bluetooth/BluetoothHfpManager.cpp
@@ -761,17 +761,16 @@ BluetoothHfpManager::ReceiveSocketData(B
     }
   } else if (msg.Find("AT+COPS?") != -1) {
     nsAutoCString message("+COPS: ");
     message.AppendInt(mNetworkSelectionMode);
     message.AppendLiteral(",0,\"");
     message.Append(NS_ConvertUTF16toUTF8(mOperatorName));
     message.AppendLiteral("\"");
     SendLine(message.get());
-    return;
   } else if (msg.Find("AT+VTS=") != -1) {
     ParseAtCommand(msg, 7, atCommandValues);
 
     if (atCommandValues.Length() != 1) {
       NS_WARNING("Couldn't get the value of command [AT+VTS=]");
       goto respond_with_ok;
     }