2021-04-11 13:31:23

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [PATCH v2] Bluetooth: Return whether a connection is outbound

Hi Yu,

> When an MGMT_EV_DEVICE_CONNECTED event is reported back to the user
> space we will set the flags to tell if the established connection is
> outbound or not. This is useful for the user space to log better metrics
> and error messages.
>
> Reviewed-by: Miao-chen Chou <[email protected]>
> Reviewed-by: Alain Michaud <[email protected]>
> Signed-off-by: Yu Liu <[email protected]>
> ---
>
> Changes in v2:
> - Defined the bit as MGMT_DEV_FOUND_INITIATED_CONN
>
> Changes in v1:
> - Initial change
>
> include/net/bluetooth/hci_core.h | 2 +-
> include/net/bluetooth/mgmt.h | 1 +
> net/bluetooth/hci_event.c | 8 ++++----
> net/bluetooth/l2cap_core.c | 2 +-
> net/bluetooth/mgmt.c | 6 +++++-
> 5 files changed, 12 insertions(+), 7 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel