summaryrefslogtreecommitdiffstats
path: root/stack/btu
diff options
context:
space:
mode:
authorKausik Sinnaswamy <kausik@broadcom.com>2012-04-10 13:45:26 +0530
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:15 -0700
commita5c380dbe1419e077bf6a3a8a30359ce74958350 (patch)
tree338b4965a9156d109c10fef4fb19340243bc24d8 /stack/btu
parent48253de5c3dffcc3884f9c2b349354f9a8acf174 (diff)
downloadexternal_bluetooth_bluedroid-a5c380dbe1419e077bf6a3a8a30359ce74958350.zip
external_bluetooth_bluedroid-a5c380dbe1419e077bf6a3a8a30359ce74958350.tar.gz
external_bluetooth_bluedroid-a5c380dbe1419e077bf6a3a8a30359ce74958350.tar.bz2
Added support to ensure that BT_DISCOVERY_STARTED and
BT_DISCOVERY_STOPPED signals are sent only after receiving the status/complete event from HCI for the start_inquiry/cancel_inquiry APIs Change-Id: I14da272b3e0596c2062ce617e9dccb788cc80425
Diffstat (limited to 'stack/btu')
-rw-r--r--stack/btu/btu_hcif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stack/btu/btu_hcif.c b/stack/btu/btu_hcif.c
index 26b0b8f..2b3c418 100644
--- a/stack/btu/btu_hcif.c
+++ b/stack/btu/btu_hcif.c
@@ -982,7 +982,7 @@ static void btu_hcif_hdl_command_complete (UINT16 opcode, UINT8 *p, UINT16 evt_l
case HCI_INQUIRY_CANCEL:
/* Tell inquiry processing that we are done */
- btm_process_inq_complete(HCI_SUCCESS, BTM_BR_INQUIRY_MASK);
+ btm_process_cancel_complete(HCI_SUCCESS, BTM_BR_INQUIRY_MASK);
break;
case HCI_SET_EVENT_FILTER:
btm_event_filter_complete (p);