From: Samuel Ortiz Date: Mon, 5 Mar 2012 00:03:47 +0000 (+0100) Subject: NFC: Export NFCID when detecting a p2p target with pn533 X-Git-Tag: v3.4-rc1~177^2~108^2~90 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2fbabfa467ce945deb92bf04c745b4d101fc21ee;p=platform%2Fkernel%2Flinux-exynos.git NFC: Export NFCID when detecting a p2p target with pn533 Signed-off-by: Samuel Ortiz Signed-off-by: John W. Linville --- diff --git a/drivers/nfc/pn533.c b/drivers/nfc/pn533.c index f5da5ae..ef33f64 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, 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;