OSDN Git Service

Fix 100 LE device connection limitation
authorAndre Eisenbach <eisenbach@google.com>
Wed, 28 Sep 2016 01:07:58 +0000 (18:07 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 28 Sep 2016 07:05:16 +0000 (00:05 -0700)
commit013c32bf98b8d511dc29fcd7de7578a421a52590
tree888148aeb4d656d6ac6c77dd98899832693a1235
parentf2e3bea844ea343c80c219f2dc59a75ea57f50c2
Fix 100 LE device connection limitation

Currently after 100 devices are added to the device security database,
any subsequent LE connection to a newly discovered LE device address
will fail as entries in the security record database are not reused.

This patch removes a device record if the device itself is removed and
also ensures that the oldest device security record is deleted if the
limit is reached to ensure a new record can be allocated.

Bug: 31625900
Change-Id: I22f6c82c64a9a9bfb2a16d79182903e5aa011355
stack/btm/btm_ble.c
stack/btm/btm_dev.c
stack/btm/btm_int.h