Bug 993280: Respond OK to HF for AT+CLCC and AT+CHLD, r=echou
authorJocelyn Liu <joliu@mozilla.com>
Thu, 17 Apr 2014 17:18:57 +0800
changeset 197506 b0da440e329fa7deb6cefcec9084af37359ced9d
parent 197505 c095baf7c7845c338391741ecd4f137637eb52a9
child 197507 7113f6dd5cdc328cdb5b017d0edd4732db5d58cd
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersechou
bugs993280
milestone31.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 993280: Respond OK to HF for AT+CLCC and AT+CHLD, r=echou
dom/bluetooth/bluedroid/hfp/BluetoothHfpManager.cpp
--- a/dom/bluetooth/bluedroid/hfp/BluetoothHfpManager.cpp
+++ b/dom/bluetooth/bluedroid/hfp/BluetoothHfpManager.cpp
@@ -598,16 +598,17 @@ BluetoothHfpManager::ProcessDtmfCmd(char
 
 void
 BluetoothHfpManager::ProcessAtChld(bthf_chld_type_t aChld)
 {
   nsAutoCString message("CHLD=");
   message.AppendInt((int)aChld);
   BT_HF_DISPATCH_MAIN(MainThreadTaskCmd::NOTIFY_DIALER,
                       NS_ConvertUTF8toUTF16(message));
+  SendResponse(BTHF_AT_RESPONSE_OK);
 }
 
 void BluetoothHfpManager::ProcessDialCall(char *aNumber)
 {
   nsAutoCString message(aNumber);
   if (message.IsEmpty()) {
     // Redial: BLDN
     mDialingRequestProcessed = false;
@@ -694,16 +695,18 @@ BluetoothHfpManager::ProcessAtClcc()
   }
 
   if (!mCdmaSecondCall.mNumber.IsEmpty()) {
     MOZ_ASSERT(mPhoneType == PhoneType::CDMA);
     MOZ_ASSERT(i == 2);
 
     SendCLCC(mCdmaSecondCall, 2);
   }
+
+  SendResponse(BTHF_AT_RESPONSE_OK);
 }
 
 void
 BluetoothHfpManager::ProcessUnknownAt(char *aAtString)
 {
   BT_LOGR("[%s]", aAtString);
 
   NS_ENSURE_TRUE_VOID(sBluetoothHfpInterface);