Commit: f71feab36538a02d9b4dbed549e52dcaa75384c9
Parent: 219e1c6e50cf8f3fdfcf152962a5b0a4c2ae7bc3
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2021-08-13 23:59:01
Tree: 7a31f15ae4b180f35a51172df58e1234a0a62fb5

bthost: Fix not initializing address types properly The address type given to the init_conn is the peer address type (btdev) not the bthost address type, the old code assume it could use since only BDADDR_BREDR or BDADDR_LE_PUBLIC was tested but with the upcoming support for LL Privacy the peer address type would become BDADDR_LE_RANDOM which cannot be used as address type of bthost as that doesn't support random addresses and would likely cause SMP to fail when pairing.

Diffstat

M emulator/bthost.c | 18 ++++++++++++- - - - - -

1 files changed, 12 insertions(+), 6 deletions(-)

View Full Diff | Patch