Re: [PATCH v2] Bluetooth: Return whether a connection is outbound
From: Marcel Holtmann
Date: Sun Apr 11 2021 - 07:54:46 EST
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 <mcchou@xxxxxxxxxxxx>
> Reviewed-by: Alain Michaud <alainm@xxxxxxxxxxxx>
> Signed-off-by: Yu Liu <yudiliu@xxxxxxxxxx>
> ---
>
> 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