nfc_initiator_select_passive_target(): save current target info also for ISO14443B*

This commit is contained in:
Philippe Teuwen 2014-01-31 23:53:29 +01:00
parent 81e1dd715d
commit e11c5254af

View file

@ -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) { if ((res = pn53x_decode_target_data(abtTargetsData, szTargetsData, CHIP_DATA(pnd)->type, nm.nmt, &(pnt->nti))) < 0) {
return res; return res;
} }
if (pn53x_current_target_new(pnd, pnt) == NULL) {
pnd->last_error = NFC_ESOFT;
return pnd->last_error;
}
} }
if (nm.nmt == NMT_ISO14443BI) { if (nm.nmt == NMT_ISO14443BI) {
// Select tag // Select tag