OSDN Git Service

Add new command and event for LTK storage support
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Mon, 24 Oct 2011 13:33:32 +0000 (15:33 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 24 Oct 2011 14:01:55 +0000 (16:01 +0200)
This documents the new command and event that are to be added to
the Management API to add support for persistent pairing of LE
devices.

doc/mgmt-api.txt

index 57771b4..cc77808 100644 (file)
@@ -382,6 +382,23 @@ Name Information Command
        expected for each Device Found event with the Confirm Name
        flag set.
 
+Load Long Term Keys Command
+===========================
+
+       Command Code:           0x0023
+       Controller Index:       <controller id>
+       Command Parameters:     Key Count (2 Octets)
+                               Key1 {
+                                       Address (6 Octets)
+                                       PIN_Length (1 Octet)
+                                       Encryption Size (1 Octet)
+                                       Enc. Diversifier (2 Octets)
+                                       Random Number (8 Octets)
+                                       Value (16 Octets)
+                               }
+                               Key2 {  }
+                               ...
+
 Read Tracing Buffer Size Command
 ================================
 
@@ -638,3 +655,18 @@ Device Unblocked Event
 Event Code             0x00016
 Controller Index       <controller id>
 Event Parameters       Address (6 Octets)
+
+New Long Term Key Event
+=======================
+
+Event Code             0x0018
+Controller Index       <controller id>
+Event Parameters       Store Hint (1 Octet)
+                       Key {
+                               Address (6 Octets)
+                               PIN_Length (1 Octet)
+                               Encryption Size (1 Octet)
+                               Enc. Diversifier (2 Octets)
+                               Random Number (8 Octets)
+                               Value (16 Octets)
+                       }