diff options
author | Jan Brands <jan.r.brands@nxp.com> | 2010-11-27 01:20:03 +0100 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2010-12-05 13:14:06 -0800 |
commit | 56075a1341b42c55a472ff6213c98b0e3c1bfdbb (patch) | |
tree | 95571cb1d6d0701f161655935d90c017a2c16f23 /src/phHal4Nfc_ADD.c | |
parent | 0cdd303a6e2ad061d6b59649988ed489859333f6 (diff) | |
download | external_libnfc-nxp-56075a1341b42c55a472ff6213c98b0e3c1bfdbb.zip external_libnfc-nxp-56075a1341b42c55a472ff6213c98b0e3c1bfdbb.tar.gz external_libnfc-nxp-56075a1341b42c55a472ff6213c98b0e3c1bfdbb.tar.bz2 |
Fix detection of Fudan card incompatible to ISO18092
Change-Id: I4d341d2b315972a3a69661b48d29388bdaa2793d
Diffstat (limited to 'src/phHal4Nfc_ADD.c')
-rw-r--r-- | src/phHal4Nfc_ADD.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/phHal4Nfc_ADD.c b/src/phHal4Nfc_ADD.c index 4da45e4..e95d872 100644 --- a/src/phHal4Nfc_ADD.c +++ b/src/phHal4Nfc_ADD.c @@ -497,8 +497,19 @@ void phHal4Nfc_TargetDiscoveryComplete( (Hal4Ctxt->psADDCtxtInfo->sADDCfg.NfcIP_Mode & phHal_ePassive106)) { + if( Sak == 0x53 // Fudan card incompatible to ISO18092 + && psRemoteDevInfo->RemoteDevInfo.Iso14443A_Info.AtqA[0] == 0x04 + && psRemoteDevInfo->RemoteDevInfo.Iso14443A_Info.AtqA[1] == 0x00 + ) + { + aRemoteDevTypes[Count] = phHal_eISO14443_3A_PICC; + Count++; + } + else + { aRemoteDevTypes[Count] = phHal_eNfcIP1_Target; Count++; + } } }/*case phHal_eISO14443_A_PICC:*/ break; |