mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
NFC: nci: Move logical connection structure allocation
conn_info is currently allocated only after nfcee_discovery_ntf which is not generic enough for logical connection other than NFCEE. The corresponding conn_info is now created in nci_core_conn_create_rsp(). Signed-off-by: Christophe Ricard <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
3ba5c8466b
commit
15d4a8da0e
5 changed files with 36 additions and 27 deletions
|
|
@ -513,7 +513,7 @@ static int st21nfcb_hci_network_init(struct nci_dev *ndev)
|
|||
|
||||
dest_params->type = NCI_DESTINATION_SPECIFIC_PARAM_NFCEE_TYPE;
|
||||
dest_params->length = sizeof(struct dest_spec_params);
|
||||
spec_params.id = ndev->hci_dev->conn_info->id;
|
||||
spec_params.id = ndev->hci_dev->nfcee_id;
|
||||
spec_params.protocol = NCI_NFCEE_INTERFACE_HCI_ACCESS;
|
||||
memcpy(dest_params->value, &spec_params, sizeof(struct dest_spec_params));
|
||||
r = nci_core_conn_create(ndev, NCI_DESTINATION_NFCEE, 1,
|
||||
|
|
|
|||
Loading…
Reference in a new issue