Changeset 1650


Ignore:
Timestamp:
02/22/10 08:01:31 (11 years ago)
Author:
landlord
Message:

Fixed a small problem as the Irdeto flag was not properly cleared in the smartreader code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/csctapi/ifd_smartreader.c

    r1647 r1650  
    177177            reader->sr_config.F=618; /// magic smartreader value
    178178            reader->sr_config.D=1;
    179             // reader->sr_config.T=2; // will be set to T=1 in EnableSmartReader
    180             reader->sr_config.T=1;
     179            reader->sr_config.T=2; // will be set to T=1 in EnableSmartReader
    181180            reader->sr_config.irdeto=TRUE;
    182181        }
     
    209208            cs_ddump(data,ATR_MAX_SIZE*2,"IO:SR: ");
    210209
    211         if(data[0]!=0x3B && data[0]!=0x03 && data[0]!=0x3F)
     210        if(data[0]!=0x3B && data[0]!=0x03 && data[0]!=0x3F) {
     211            reader->sr_config.irdeto=FALSE;
    212212            continue; // this is not a valid ATR.
     213        }
    213214           
    214215        if(data[0]==0x03) {
     
    365366
    366367    // command 4 , set parameter T
    367     if(reader->sr_config.irdeto) // special trick to get ATR for Irdeto card, we need T=1 at reset, after that oscam takes care of T1 protocol, so we need T=0
     368    if(reader->sr_config.irdeto && T==2) // special trick to get ATR for Irdeto card, we need T=1 at reset, after that oscam takes care of T1 protocol, so we need T=0
    368369        {
    369370        T=1;
Note: See TracChangeset for help on using the changeset viewer.