doc/mgmt-api - Return connection direction in Device Connected Event
authorYu Liu <yudiliu@google.com>
Fri, 2 Apr 2021 18:00:14 +0000 (11:00 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:35 +0000 (19:08 +0530)
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: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
doc/mgmt-api.txt

index 8bbf0ef..32e5eab 100755 (executable)
@@ -4150,6 +4150,7 @@ Device Connected Event
                0       Reserved (not in use)
                1       Legacy Pairing
                2       Reserved (not in use)
+               3       Initiated Connection
 
 
 Device Disconnected Event
@@ -4323,6 +4324,7 @@ Device Found Event
                0       Confirm name
                1       Legacy Pairing
                2       Not Connectable
+               3       Reserved (not in use)
 
        For the RSSI field a value of 127 indicates that the RSSI is
        not available. That can happen with Bluetooth 1.1 and earlier