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 179523 b0da440e329fa7deb6cefcec9084af37359ced9d
parent 179522 c095baf7c7845c338391741ecd4f137637eb52a9
child 179524 7113f6dd5cdc328cdb5b017d0edd4732db5d58cd
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersechou
bugs993280
milestone31.0a1
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);