diff mbox series

[RFC,v2] doc/mgmt-api - Return connection direction in Device Connected Event

Message ID 20210324115840.RFC.v2.1.I530e1c3e621abd34c342d657df119e12e576d8a7@changeid
State New
Headers show
Series [RFC,v2] doc/mgmt-api - Return connection direction in Device Connected Event | expand

Commit Message

Yu Liu March 24, 2021, 6:58 p.m. UTC
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>
---

Changes in v2:
- Use next free bit

Changes in v1:
- Initial change

 doc/mgmt-api.txt | 1 +
 1 file changed, 1 insertion(+)

Comments

Marcel Holtmann March 26, 2021, 7:41 a.m. UTC | #1
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@chromium.org>

> Reviewed-by: Alain Michaud <alainm@chromium.org>

> Signed-off-by: Yu Liu <yudiliu@google.com>

> ---

> 

> Changes in v2:

> - Use next free bit

> 

> Changes in v1:

> - Initial change

> 

> doc/mgmt-api.txt | 1 +

> 1 file changed, 1 insertion(+)

> 

> diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt

> index cab1fffc5..98552e761 100644

> --- a/doc/mgmt-api.txt

> +++ b/doc/mgmt-api.txt

> @@ -4088,6 +4088,7 @@ Device Connected Event

> 		0	Reserved (not in use)

> 		1	Legacy Pairing

> 		2	Reserved (not in use)

> +		3	Initiated Connection


please also mark it reserved in Device Found event.

Regards

Marcel
diff mbox series

Patch

diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt
index cab1fffc5..98552e761 100644
--- a/doc/mgmt-api.txt
+++ b/doc/mgmt-api.txt
@@ -4088,6 +4088,7 @@  Device Connected Event
 		0	Reserved (not in use)
 		1	Legacy Pairing
 		2	Reserved (not in use)
+		3	Initiated Connection
 
 
 Device Disconnected Event