diff options
author | Kausik Sinnaswamy <kausik@broadcom.com> | 2012-04-10 13:45:26 +0530 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2012-07-14 11:19:15 -0700 |
commit | a5c380dbe1419e077bf6a3a8a30359ce74958350 (patch) | |
tree | 338b4965a9156d109c10fef4fb19340243bc24d8 /stack/include/btm_api.h | |
parent | 48253de5c3dffcc3884f9c2b349354f9a8acf174 (diff) | |
download | external_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/include/btm_api.h')
-rw-r--r-- | stack/include/btm_api.h | 10 |
1 files changed, 9 insertions, 1 deletions
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; |