summaryrefslogtreecommitdiffstats
path: root/device/src/controller.c
diff options
context:
space:
mode:
authorPriti Aghera <paghera@broadcom.com>2015-04-17 18:11:24 -0700
committerAndre Eisenbach <eisenbach@google.com>2015-04-20 21:42:42 -0700
commitb8b3e8070ad027e7a45ca5048ae807c4ec099b15 (patch)
tree9a6de7e440fe74d99d20e637366c0fbce97a2a5c /device/src/controller.c
parenta9962ce69ef78a4720183c70deb5db8cfbc70cf0 (diff)
downloadandroid_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/src/controller.c')
-rw-r--r--device/src/controller.c8
1 files changed, 8 insertions, 0 deletions
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
};