NFC: nci: Move logical connection structure allocation
[firefly-linux-kernel-4.4.55.git] / drivers / nfc / st21nfcb / st21nfcb_se.c
index 3b465e4c85e3e3e3b773b1f4e89310a9dffcdef2..d23e8f27c4aaf5baabca40acd9eecd04e072ab66 100644 (file)
@@ -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,