diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2015-03-31 02:02:21 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-04-05 18:19:05 -0400 |
commit | 1f74f323e2c30b7fd53f6ad16c1990f2c80bbfc0 (patch) | |
tree | 5ff92f9e330fb1e5d41238f4bcaf52dfde7af2d5 | |
parent | 05db6e94fe7f63e10df94bd628a033b2ecb0bf7b (diff) |
nfc: nci: Add comment to explain NCI_HCI_MAX_PIPES
According to specification etsi 102 622 chapter 4.4 pipes
identifier is 7 bits long giving a 127 possible pipes value.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r-- | include/net/nfc/nci_core.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/nfc/nci_core.h b/include/net/nfc/nci_core.h index 34a6e09b3f7f..d4dcc7199fd7 100644 --- a/include/net/nfc/nci_core.h +++ b/include/net/nfc/nci_core.h | |||
@@ -138,6 +138,10 @@ struct nci_conn_info { | |||
138 | #define NCI_HCI_INVALID_HOST 0x80 | 138 | #define NCI_HCI_INVALID_HOST 0x80 |
139 | 139 | ||
140 | #define NCI_HCI_MAX_CUSTOM_GATES 50 | 140 | #define NCI_HCI_MAX_CUSTOM_GATES 50 |
141 | /* | ||
142 | * According to specification 102 622 chapter 4.4 Pipes, | ||
143 | * the pipe identifier is 7 bits long. | ||
144 | */ | ||
141 | #define NCI_HCI_MAX_PIPES 127 | 145 | #define NCI_HCI_MAX_PIPES 127 |
142 | 146 | ||
143 | struct nci_hci_gate { | 147 | struct nci_hci_gate { |