Parent: b77c5ffd3d5f944ef56167880da67c4e1eee6b7f
Author: Jakub Tyszkowski <jakub.tyszkowski@tieto.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2014-03-17 11:41:46
Tree: 09361594b9324c96e1736ec509d6dddd5edcc1e5
android/bluetooth: Add GATT notifications on LE discovery This patch introduce API which GATT can use to start/stop discovery and register for required events. This is because GATT needs to get from GAP notifications about founded devices and also notification when discovery has been stopped. GATT will need it explicity when GATT client calls scan, and also in case of connect device, as before le connect is sent we do scan first to make sure that device is available. For now on adapter have two variables tracing discovery. 1. cur_discovery_type which show type of ongoing discovery type. 2. exp_discovery_type which shows type of next discovery session. We need this because of scenarion when GATT is interesting in scan and in the same time HAL wants to do scanning.
Diffstat
| M | android/bluetooth.c | | | 109 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - |
| M | android/bluetooth.h | | | 7 | +++++++ |
2 files changed, 105 insertions(+), 11 deletions(-)