]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix handling of LE Enhanced Connection Complete
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 11 Aug 2021 23:20:15 +0000 (16:20 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 16 Aug 2021 15:53:48 +0000 (17:53 +0200)
commit306fed59b0f9a57a0bc292f18e0111160d3141f3
treeb05a35aaf0b83bab016bf5dcadd128a54125c37d
parent7857fd3ea5b61df40b8fe5dac754e3e32e977994
Bluetooth: Fix handling of LE Enhanced Connection Complete

LE Enhanced Connection Complete contains the Local RPA used in the
connection which must be used when set otherwise there could problems
when pairing since the address used by the remote stack could be the
Local RPA:

BLUETOOTH CORE SPECIFICATION Version 5.2 | Vol 4, Part E
page 2396

  'Resolvable Private Address being used by the local device for this
  connection. This is only valid when the Own_Address_Type (from the
  HCI_LE_Create_Connection, HCI_LE_Set_Advertising_Parameters,
  HCI_LE_Set_Extended_Advertising_Parameters, or
  HCI_LE_Extended_Create_Connection commands) is set to 0x02 or
  0x03, and the Controller generated a resolvable private address for the
  local device using a non-zero local IRK. For other Own_Address_Type
  values, the Controller shall return all zeros.'

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_event.c