OSDN Git Service

Fix condition of adding device to resloving list
authorChao Quan <chao.quan@mediatek.com>
Thu, 28 Sep 2017 17:15:32 +0000 (10:15 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Thu, 28 Sep 2017 19:02:25 +0000 (12:02 -0700)
commit6738c83f8e3edca53669df401f6db7f9c3fc8d54
tree07b889c28fad573a9767204e9fbd44ebe6a8c4b1
parent06d4a42ac29e2cee4563a3f22969041a788f4fad
Fix condition of adding device to resloving list

Initial conditions:
1. A phone with a bt controller which doesn't support LE
privacy feature.
2. A HOGP mouse which doesn't exchange identity informatin
(IRK & indentity address)to phone
Reproduce procedure:
1. phone pair with mouse.
2. Disconnect profile link to mouse.
3. re-initiate connect to mouse.
Result: Can't connect to mouse

After bond done, stack will try to add the bonded device
to resolving list. But in the condition that controller
doesn't support LE privacy, stack adds a record with a dummy
static address. When re-initiate connection to this device,
stack will use this dummy static address, and connection
fail.

Fix the related condition

Test: manual
Change-Id: I82621c57c54667294912d4270be10299e8029b4a
stack/btm/btm_ble_privacy.cc