mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
cd96db6fd0
commit
b3a55b9c5d
2 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue