Add secure param to mgmt_ev_pin_code_request
Update mgmt interface with secure param in PIN code request event which
is part of secure PIN requirement implementation.
diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt
index 925b5ad..45f6a64 100644
--- a/doc/mgmt-api.txt
+++ b/doc/mgmt-api.txt
@@ -482,6 +482,7 @@
Event Code 0x000E
Controller Index: <controller id>
Event Parameters Address (6 Octets)
+ Secure (1 Octet)
User Confirmation Request Event
diff --git a/lib/mgmt.h b/lib/mgmt.h
index 22979d9..57e7603 100644
--- a/lib/mgmt.h
+++ b/lib/mgmt.h
@@ -259,6 +259,7 @@
#define MGMT_EV_PIN_CODE_REQUEST 0x000E
struct mgmt_ev_pin_code_request {
bdaddr_t bdaddr;
+ uint8_t secure;
} __packed;
#define MGMT_EV_USER_CONFIRM_REQUEST 0x000F