From e11c5254af891191fda8d0f13f2e2fe4b9f0f4a8 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 31 Jan 2014 23:53:29 +0100 Subject: [PATCH] nfc_initiator_select_passive_target(): save current target info also for ISO14443B* --- libnfc/chips/pn53x.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index d0e888f..b543c31 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -1127,6 +1127,10 @@ pn53x_initiator_select_passive_target_ext(struct nfc_device *pnd, if ((res = pn53x_decode_target_data(abtTargetsData, szTargetsData, CHIP_DATA(pnd)->type, nm.nmt, &(pnt->nti))) < 0) { return res; } + if (pn53x_current_target_new(pnd, pnt) == NULL) { + pnd->last_error = NFC_ESOFT; + return pnd->last_error; + } } if (nm.nmt == NMT_ISO14443BI) { // Select tag