# Re: \[PATCH v4 1/2\] Bluetooth: Fix handling of LE Enhanced Connection Complete

- From: Marcel Holtmann \<marcel@holtmann.org\>
- Date: 2021-08-16 15:55:56 
- List: linux-bluetooth
- Page: https://ratatoskr.run/linux-bluetooth/2021/08/9681089
- Thread: https://ratatoskr.run/linux-bluetooth/2021/08/9680949/t.md

```text
Hi Luiz,

> 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 <redacted>
> ---
> net/bluetooth/hci_event.c | 93 ++++++++++++++++++++++++++-------------
> 1 file changed, 62 insertions(+), 31 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

```
