From a5c380dbe1419e077bf6a3a8a30359ce74958350 Mon Sep 17 00:00:00 2001 From: Kausik Sinnaswamy Date: Tue, 10 Apr 2012 13:45:26 +0530 Subject: 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 --- stack/include/btm_api.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'stack/include') diff --git a/stack/include/btm_api.h b/stack/include/btm_api.h index 20ae90c..e27fcb1 100644 --- a/stack/include/btm_api.h +++ b/stack/include/btm_api.h @@ -807,11 +807,19 @@ typedef struct BD_ADDR_PTR p_bda; /* The address of the disconnected device */ } tBTM_BL_DISCN_DATA; +/* Busy-Level shall have the inquiry_paging mask set when + * inquiry/paging is in progress, Else the number of ACL links */ +#define BTM_BL_INQUIRY_PAGING_MASK 0x10 +#define BTM_BL_INQUIRY_STARTED (BTM_BL_INQUIRY_PAGING_MASK | 0x1) +#define BTM_BL_INQUIRY_CANCELLED (BTM_BL_INQUIRY_PAGING_MASK | 0x2) +#define BTM_BL_INQUIRY_COMPLETE (BTM_BL_INQUIRY_PAGING_MASK | 0x3) +#define BTM_BL_PAGING_STARTED (BTM_BL_INQUIRY_PAGING_MASK | 0x4) +#define BTM_BL_PAGING_COMPLETE (BTM_BL_INQUIRY_PAGING_MASK | 0x5) /* the data type associated with BTM_BL_UPDATE_EVT */ typedef struct { tBTM_BL_EVENT event; /* The event reported. */ - UINT8 busy_level;/* when paging or inquiring, level is 10. + UINT8 busy_level;/* when paging or inquiring, level is as above. * Otherwise, the number of ACL links. */ } tBTM_BL_UPDATE_DATA; -- cgit v1.1