diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2014-12-02 21:27:52 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-12-02 22:48:13 +0100 |
commit | b3a55b9c5d44d0ed38eb6e8593a47578801730de (patch) | |
tree | 0c5f4455cb1cbc3f0a1bcc55d7ac8e8bb06ad8a2 /net/nfc/hci | |
parent | cd96db6fd0ac1c352e386fb2c632c455bf501e1f (diff) | |
download | op-kernel-dev-b3a55b9c5d44d0ed38eb6e8593a47578801730de.zip op-kernel-dev-b3a55b9c5d44d0ed38eb6e8593a47578801730de.tar.gz |
NFC: hci: Add specific hci macro to not create a pipe
Some pipe are only created by other host (different than the
Terminal Host).
The pipe values will for example be notified by
NFC_HCI_ADM_NOTIFY_PIPE_CREATED.
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/hci')
-rw-r--r-- | net/nfc/hci/command.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/nfc/hci/command.c b/net/nfc/hci/command.c index 677d24b..91df487 100644 --- a/net/nfc/hci/command.c +++ b/net/nfc/hci/command.c @@ -345,6 +345,9 @@ int nfc_hci_connect_gate(struct nfc_hci_dev *hdev, u8 dest_host, u8 dest_gate, pr_debug("\n"); + if (hdev->gate2pipe[dest_gate] == NFC_HCI_DO_NOT_CREATE_PIPE) + return 0; + if (hdev->gate2pipe[dest_gate] != NFC_HCI_INVALID_PIPE) return -EADDRINUSE; |