From 2eef3ae29740d4ed60045c8d541d2bee93f2fb08 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 13 Jan 2012 13:59:49 +0200 Subject: [PATCH] mgmt-api: Update to latest plans - Remove the remote_name event and add the name to the device_connected event (since we always refresh the name at that point anyway). - Add Class of Device to device_connected since that's the only point where we get it when a previously unknown device connects to us for the first time. - Add a Flags field to device_found to accommodate for legacy pairing information (which we get from the remote host features HCI event) and merge the only other existing boolean parameter (confirm_name) into this Flags field. --- doc/mgmt-api.txt | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt index c8305d959..86100d67e 100644 --- a/doc/mgmt-api.txt +++ b/doc/mgmt-api.txt @@ -628,6 +628,8 @@ Event Code 0x000A Controller Index: Event Parameters Address (6 Octets) Type (1 Octet) + Class_Of_Device (3 Octets) + Name (249 Octets) Possible values for the Type parameter: 0 BR/EDR @@ -711,28 +713,24 @@ Event Parameters Address (6 Octets) Type (1 Octet) Class_Of_Device (3 Octets) RSSI (1 Octet) - Confirm Name (1 Octet) - EIR_Data (240 Octets) + Flags (4 Octets) + EIR_Data_Length (1 Octet) + EIR_Data (0-255 Octets) Possible values for the Type parameter: 0 BR/EDR 1 LE Public 2 LE Random - -Remote Name Event -================= - -Event Code 0x0012 -Controller Index -Event Parameters Address (6 Octets) - Name (249 Octets) + The following bits are defined for the Flags parameter: + 0 Confirm name + 1 Legacy Pairing Discovering Event ================= -Event Code 0x00013 +Event Code 0x00012 Controller Index Event Parameters Discovering (1 Octet) @@ -740,7 +738,7 @@ Event Parameters Discovering (1 Octet) Device Blocked Event ==================== -Event Code 0x00014 +Event Code 0x00013 Controller Index Event Parameters Address (6 Octets) @@ -748,7 +746,7 @@ Event Parameters Address (6 Octets) Device Unblocked Event ====================== -Event Code 0x00015 +Event Code 0x00014 Controller Index Event Parameters Address (6 Octets) @@ -756,7 +754,7 @@ Event Parameters Address (6 Octets) New Long Term Key Event ======================= -Event Code 0x0016 +Event Code 0x0015 Controller Index Event Parameters Store Hint (1 Octet) Key { -- 2.47.3