Changeset 2050 for trunk/reader-dre.c


Ignore:
Timestamp:
Apr 11, 2010, 1:06:36 PM (10 years ago)
Author:
merek
Message:

DRE SA filter only for caid 0x4ae1 - part 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/reader-dre.c

    r2049 r2050  
    303303        case 0x89:
    304304            ep->type = SHARED;
    305             memset(ep->hexserial, 0, 8);
    306             memcpy(ep->hexserial, ep->emm + 3, 4);
    307             return (!memcmp(&rdr->sa[0][0], ep->emm + 3, 4));
     305            // FIXME: Seems to be that SA is only used with caid 0x4ae1
     306            if (rdr->caid[0] == 0x4ae1) {
     307                memset(ep->hexserial, 0, 8);
     308                memcpy(ep->hexserial, ep->emm + 3, 4);
     309                return (!memcmp(&rdr->sa[0][0], ep->emm + 3, 4));
     310            else
     311                return TRUE;
    308312        default:
    309313            ep->type = UNKNOWN;
Note: See TracChangeset for help on using the changeset viewer.