NFC: st-nci: Add support for NCI_HCI_IDENTITY_MGMT_GATE
authorChristophe Ricard <christophe.ricard@gmail.com>
Sun, 25 Oct 2015 21:54:33 +0000 (22:54 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 26 Oct 2015 05:53:16 +0000 (06:53 +0100)
NCI_HCI_IDENTITY_MGMT_GATE might be useful to get information
about hardware or firmware version.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/st-nci/se.c
include/net/nfc/nci_core.h

index 11e49a5..5d1747d 100644 (file)
@@ -112,6 +112,9 @@ static struct nci_hci_gate st_nci_gates[] = {
        {ST_NCI_DEVICE_MGNT_GATE, ST_NCI_DEVICE_MGNT_PIPE,
                                        ST_NCI_HOST_CONTROLLER_ID},
 
+       {NCI_HCI_IDENTITY_MGMT_GATE, NCI_HCI_INVALID_PIPE,
+                                       ST_NCI_HOST_CONTROLLER_ID},
+
        /* Secure element pipes are created by secure element host */
        {ST_NCI_CONNECTIVITY_GATE, NCI_HCI_DO_NOT_OPEN_PIPE,
                                        ST_NCI_HOST_CONTROLLER_ID},
index 65e40df..79c6d1a 100644 (file)
@@ -128,6 +128,7 @@ struct nci_conn_info {
 
 /* Gates */
 #define NCI_HCI_ADMIN_GATE         0x00
+#define NCI_HCI_IDENTITY_MGMT_GATE 0x05
 #define NCI_HCI_LINK_MGMT_GATE     0x06
 
 /* Pipes */