diff options
author | Priti Aghera <paghera@broadcom.com> | 2012-05-14 16:26:32 -0700 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2012-07-14 11:19:20 -0700 |
commit | 2a94fdee439de90cc137113f679689cd75db5515 (patch) | |
tree | 08b37de5ff81dcc8263c5160d34812d8d774ec9c /btif | |
parent | 019bddb4812851b93321b721fbdea83426fe1277 (diff) | |
download | external_bluetooth_bluedroid-2a94fdee439de90cc137113f679689cd75db5515.zip external_bluetooth_bluedroid-2a94fdee439de90cc137113f679689cd75db5515.tar.gz external_bluetooth_bluedroid-2a94fdee439de90cc137113f679689cd75db5515.tar.bz2 |
Fixed the status to return int value instead of boolean value
Change-Id: Ibaf4e5244d385b6c03f6fb33d619ad7f697d9c0c
Diffstat (limited to 'btif')
-rwxr-xr-x | btif/src/btif_hl.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/btif/src/btif_hl.c b/btif/src/btif_hl.c index 2f2821f..16fd027 100755 --- a/btif/src/btif_hl.c +++ b/btif/src/btif_hl.c @@ -4142,7 +4142,7 @@ static bt_status_t connect_channel(int app_id, bt_bdaddr_t *bd_addr, int mdep_cf UINT8 app_idx, mcl_idx; btif_hl_app_cb_t *p_acb = NULL; btif_hl_mcl_cb_t *p_mcb=NULL; - BOOLEAN status = FALSE; + bt_status_t status = BT_STATUS_SUCCESS; tBTA_HL_DCH_OPEN_PARAM dch_open; BD_ADDR bda; UINT8 i; @@ -4178,8 +4178,12 @@ static bt_status_t connect_channel(int app_id, bt_bdaddr_t *bd_addr, int mdep_cf } dch_open.sec_mask = (BTA_SEC_AUTHENTICATE | BTA_SEC_ENCRYPT); - status = btif_hl_dch_open(p_acb->app_id, bda, &dch_open, - mdep_cfg_index, BTIF_HL_PEND_DCH_OP_OPEN, channel_id ); + if( !btif_hl_dch_open(p_acb->app_id, bda, &dch_open, + mdep_cfg_index, BTIF_HL_PEND_DCH_OP_OPEN, channel_id )) + { + status = BT_STATUS_FAIL; + BTIF_TRACE_EVENT1("%s loc0 status = BT_STATUS_FAIL", __FUNCTION__); + } } else { |