Skip to content

Commit

Permalink
NFC: Export NFCID when detecting a p2p target with pn533
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Ortiz <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
Samuel Ortiz authored and linvjw committed Mar 6, 2012
1 parent d8dc107 commit 2fbabfa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/nfc/pn533.c
Original file line number Diff line number Diff line change
Expand Up @@ -1316,6 +1316,8 @@ static int pn533_in_dep_link_up_complete(struct pn533 *dev, void *arg,
nfc_dev_dbg(&dev->interface->dev, "Creating new target");

nfc_target.supported_protocols = NFC_PROTO_NFC_DEP_MASK;
nfc_target.nfcid1_len = 10;
memcpy(nfc_target.nfcid1, resp->nfcid3t, nfc_target.nfcid1_len);
rc = nfc_targets_found(dev->nfc_dev, &nfc_target, 1);
if (rc)
return 0;
Expand Down

0 comments on commit 2fbabfa

Please sign in to comment.