diff options
author | Robert Dolca <robert.dolca@intel.com> | 2015-10-22 11:11:41 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-10-25 20:29:11 +0100 |
commit | 85b9ce9a21b119a8163f20d60e7f0ce58fffbeef (patch) | |
tree | 86c2206f1149930987b1b6b001e5b19a3f09732b /include/net/nfc | |
parent | NFC: nci: fix possible crash in nci_core_conn_create (diff) | |
download | linux-85b9ce9a21b119a8163f20d60e7f0ce58fffbeef.tar.xz linux-85b9ce9a21b119a8163f20d60e7f0ce58fffbeef.zip |
NFC: nci: add nci_get_conn_info_by_id function
This functin takes as a parameter a pointer to the nci_dev
struct and the first byte from the values of the first domain
specific parameter that was used for the connection creation.
Signed-off-by: Robert Dolca <robert.dolca@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/net/nfc')
-rw-r--r-- | include/net/nfc/nci_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/nfc/nci_core.h b/include/net/nfc/nci_core.h index 5daf0042261e..0569cb251135 100644 --- a/include/net/nfc/nci_core.h +++ b/include/net/nfc/nci_core.h @@ -374,6 +374,7 @@ void nci_clear_target_list(struct nci_dev *ndev); void nci_req_complete(struct nci_dev *ndev, int result); struct nci_conn_info *nci_get_conn_info_by_conn_id(struct nci_dev *ndev, int conn_id); +int nci_get_conn_info_by_id(struct nci_dev *ndev, u8 id); /* ----- NCI status code ----- */ int nci_to_errno(__u8 code); |