diff options
| author | Priti Aghera <paghera@broadcom.com> | 2015-04-17 18:11:24 -0700 |
|---|---|---|
| committer | Andre Eisenbach <eisenbach@google.com> | 2015-04-20 21:42:42 -0700 |
| commit | b8b3e8070ad027e7a45ca5048ae807c4ec099b15 (patch) | |
| tree | 9a6de7e440fe74d99d20e637366c0fbce97a2a5c /device | |
| parent | a9962ce69ef78a4720183c70deb5db8cfbc70cf0 (diff) | |
| download | android_system_bt-b8b3e8070ad027e7a45ca5048ae807c4ec099b15.tar.gz android_system_bt-b8b3e8070ad027e7a45ca5048ae807c4ec099b15.tar.bz2 android_system_bt-b8b3e8070ad027e7a45ca5048ae807c4ec099b15.zip | |
Initialize white list size after stack reset
The white list size is not currently set correctly, preventing devices
from being added to the LE whitelist, thus completely breaking
re-connects.
This fixes the white list management and propagates the correct reason
code for HID close events to make sure a device is re-added to the white
list if necessary.
Bug: 20290744
Change-Id: I46d7254ff3568c9964688cb192b9deb6b7d3062d
Diffstat (limited to 'device')
| -rw-r--r-- | device/include/controller.h | 2 | ||||
| -rw-r--r-- | device/src/controller.c | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/device/include/controller.h b/device/include/controller.h index 2acca1bc0..3e181b9c8 100644 --- a/device/include/controller.h +++ b/device/include/controller.h @@ -71,6 +71,8 @@ typedef struct controller_t { uint16_t (*get_acl_buffer_count_classic)(void); uint8_t (*get_acl_buffer_count_ble)(void); + uint8_t (*get_ble_white_list_size)(void); + uint8_t (*get_ble_resolving_list_max_size)(void); void (*set_ble_resolving_list_max_size)(int resolving_list_max_size); } controller_t; diff --git a/device/src/controller.c b/device/src/controller.c index 02edc4faf..62051d5fe 100644 --- a/device/src/controller.c +++ b/device/src/controller.c @@ -407,6 +407,12 @@ static uint8_t get_acl_buffer_count_ble(void) { return acl_buffer_count_ble; } +static uint8_t get_ble_white_list_size(void) { + assert(readable); + assert(ble_supported); + return ble_white_list_size; +} + static uint8_t get_ble_resolving_list_max_size(void) { assert(readable); assert(ble_supported); @@ -455,6 +461,8 @@ static const controller_t interface = { get_acl_buffer_count_classic, get_acl_buffer_count_ble, + get_ble_white_list_size, + get_ble_resolving_list_max_size, set_ble_resolving_list_max_size }; |
