]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0493128f3b24fd0aa2ebe04ef6103d39cb63168b
treef29e293387cd40bb4172eb9a9a60701013cb435b
parent0ec0148d8b8edb0156bc8e3e50683635b72b305f
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