diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2012-03-04 19:03:47 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-06 15:16:23 -0500 |
commit | 2fbabfa467ce945deb92bf04c745b4d101fc21ee (patch) | |
tree | fd1578352e3093aa13c3357c3b1e9b57b95084fd /drivers/nfc | |
parent | d8dc107248d336695ca6a964c5ffdc2f4d160a04 (diff) |
NFC: Export NFCID when detecting a p2p target with pn533
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/nfc')
-rw-r--r-- | drivers/nfc/pn533.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nfc/pn533.c b/drivers/nfc/pn533.c index f5da5ae67ec..ef33f64143b 100644 --- a/drivers/nfc/pn533.c +++ b/drivers/nfc/pn533.c | |||
@@ -1316,6 +1316,8 @@ static int pn533_in_dep_link_up_complete(struct pn533 *dev, void *arg, | |||
1316 | nfc_dev_dbg(&dev->interface->dev, "Creating new target"); | 1316 | nfc_dev_dbg(&dev->interface->dev, "Creating new target"); |
1317 | 1317 | ||
1318 | nfc_target.supported_protocols = NFC_PROTO_NFC_DEP_MASK; | 1318 | nfc_target.supported_protocols = NFC_PROTO_NFC_DEP_MASK; |
1319 | nfc_target.nfcid1_len = 10; | ||
1320 | memcpy(nfc_target.nfcid1, resp->nfcid3t, nfc_target.nfcid1_len); | ||
1319 | rc = nfc_targets_found(dev->nfc_dev, &nfc_target, 1); | 1321 | rc = nfc_targets_found(dev->nfc_dev, &nfc_target, 1); |
1320 | if (rc) | 1322 | if (rc) |
1321 | return 0; | 1323 | return 0; |