Bluetooth: Return whether a connection is outbound
authorYu Liu <yudiliu@google.com>
Fri, 9 Apr 2021 22:04:06 +0000 (15:04 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 26 Jun 2021 05:12:23 +0000 (07:12 +0200)
commit1c6ed31b1696d9b5462ba5ce15b83f5ea955600c
treef29e293387cd40bb4172eb9a9a60701013cb435b
parent07d85dbe411a1194eef5b70f1a5d070ee1e226a5
Bluetooth: Return whether a connection is outbound

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@chromium.org>
Reviewed-by: Alain Michaud <alainm@chromium.org>
Signed-off-by: Yu Liu <yudiliu@google.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
include/net/bluetooth/mgmt.h
net/bluetooth/hci_event.c
net/bluetooth/l2cap_core.c
net/bluetooth/mgmt.c