diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2016-04-30 03:12:51 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2016-05-03 19:43:21 -0400 |
commit | 9b8d1a4cf2aa819d606b4e423a6523fc0d4460a2 (patch) | |
tree | 5862df9d18bb3e54f90b6fb81a23ac68ea0107a8 /drivers/nfc | |
parent | de5ea8517c2ae40785fe5d0a2d02fc71bef1761b (diff) |
nfc: nci: Add an additional parameter to identify a connection id
According to NCI specification, destination type and destination
specific parameters shall uniquely identify a single destination
for the Logical Connection.
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc')
-rw-r--r-- | drivers/nfc/fdp/fdp.c | 3 | ||||
-rw-r--r-- | drivers/nfc/st-nci/se.c | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/drivers/nfc/fdp/fdp.c b/drivers/nfc/fdp/fdp.c index ccb07a1b153d..e44a7a2f4061 100644 --- a/drivers/nfc/fdp/fdp.c +++ b/drivers/nfc/fdp/fdp.c | |||
@@ -102,7 +102,8 @@ static int fdp_nci_create_conn(struct nci_dev *ndev) | |||
102 | if (r) | 102 | if (r) |
103 | return r; | 103 | return r; |
104 | 104 | ||
105 | return nci_get_conn_info_by_id(ndev, 0); | 105 | return nci_get_conn_info_by_dest_type_params(ndev, |
106 | FDP_PATCH_CONN_DEST, NULL); | ||
106 | } | 107 | } |
107 | 108 | ||
108 | static inline int fdp_nci_get_versions(struct nci_dev *ndev) | 109 | static inline int fdp_nci_get_versions(struct nci_dev *ndev) |
diff --git a/drivers/nfc/st-nci/se.c b/drivers/nfc/st-nci/se.c index e7f25f4e3dc3..420f019cc42f 100644 --- a/drivers/nfc/st-nci/se.c +++ b/drivers/nfc/st-nci/se.c | |||
@@ -600,10 +600,12 @@ static int st_nci_hci_network_init(struct nci_dev *ndev) | |||
600 | * HCI will be used here only for proprietary commands. | 600 | * HCI will be used here only for proprietary commands. |
601 | */ | 601 | */ |
602 | if (test_bit(ST_NCI_FACTORY_MODE, &info->flags)) | 602 | if (test_bit(ST_NCI_FACTORY_MODE, &info->flags)) |
603 | r = nci_nfcee_mode_set(ndev, ndev->hci_dev->conn_info->id, | 603 | r = nci_nfcee_mode_set(ndev, |
604 | ndev->hci_dev->conn_info->dest_params->id, | ||
604 | NCI_NFCEE_DISABLE); | 605 | NCI_NFCEE_DISABLE); |
605 | else | 606 | else |
606 | r = nci_nfcee_mode_set(ndev, ndev->hci_dev->conn_info->id, | 607 | r = nci_nfcee_mode_set(ndev, |
608 | ndev->hci_dev->conn_info->dest_params->id, | ||
607 | NCI_NFCEE_ENABLE); | 609 | NCI_NFCEE_ENABLE); |
608 | 610 | ||
609 | free_dest_params: | 611 | free_dest_params: |