summaryrefslogtreecommitdiffstats
path: root/btif/src
diff options
context:
space:
mode:
authorRavi Nagarajan <nravi@broadcom.com>2012-03-08 00:17:55 +0530
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:12 -0700
commit002a3f1c18f0caf9994f55779fc4071c274b5793 (patch)
treefefaf34326463d0a06407b0079284c288f00b702 /btif/src
parent00ccb4718770d46f55a594a635d67d635502f958 (diff)
downloadexternal_bluetooth_bluedroid-002a3f1c18f0caf9994f55779fc4071c274b5793.zip
external_bluetooth_bluedroid-002a3f1c18f0caf9994f55779fc4071c274b5793.tar.gz
external_bluetooth_bluedroid-002a3f1c18f0caf9994f55779fc4071c274b5793.tar.bz2
Fix the CHLD handling, stack sends the string argument, convert to int before sending it up
Change-Id: Ib66a91df3e44fb7fc3710454573908f8144cd514
Diffstat (limited to 'btif/src')
-rw-r--r--btif/src/btif_hf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/btif/src/btif_hf.c b/btif/src/btif_hf.c
index 93c5afe..7a41098 100644
--- a/btif/src/btif_hf.c
+++ b/btif/src/btif_hf.c
@@ -56,6 +56,7 @@
#include <hardware/bluetooth.h>
#include <hardware/bt_hf.h>
+#include <stdlib.h>
#define LOG_TAG "BTIF_HF"
#include "btif_common.h"
@@ -343,7 +344,7 @@ static void btif_hf_upstreams_evt(UINT16 event, char* p_param)
/* Java needs to send OK/ERROR for these commands */
case BTA_AG_AT_CHLD_EVT:
- CHECK_CALL_CBACK(bt_hf_callbacks, chld_cmd_cb, p_data->val.num);
+ CHECK_CALL_CBACK(bt_hf_callbacks, chld_cmd_cb, atoi(p_data->val.str));
break;
case BTA_AG_AT_CLCC_EVT: