Changeset 3875
- Timestamp:
- 11/10/10 23:29:07 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/reader-viaccess.c
r3870 r3875 177 177 178 178 179 if ((atr[0]!=0x3f) || (atr[1]!=0x77) || ((atr[2]!=0x18) && (atr[2]!=0x11) && (atr[2]!=0x19)) || (atr[9]!=0x68)) return ERROR; 180 181 write_cmd(insFAC, FacDat); 182 if( !(cta_res[cta_lr-2]==0x90 && cta_res[cta_lr-1]==0) ) 183 return ERROR; 179 if ((atr[0]!=0x3f) || (atr[1]!=0x77) || ((atr[2]!=0x18) && (atr[2]!=0x11) && (atr[2]!=0x19)) || (atr[9]!=0x68)) 180 return ERROR; 181 182 write_cmd(insFAC, FacDat); 183 if( !(cta_res[cta_lr-2]==0x90 && cta_res[cta_lr-1]==0) ) 184 return ERROR; 185 186 reader->last_geo.number_ecm = 0; 187 write_cmd(insFAC, ins8702_data); 188 if ((cta_res[cta_lr-2]==0x90) && (cta_res[cta_lr-1]==0x00)) { 189 write_cmd(ins8704, NULL); 190 if ((cta_res[cta_lr-2]==0x90) && (cta_res[cta_lr-1]==0x00)) { 191 write_cmd(ins8706, NULL); 192 if ((cta_res[cta_lr-2]==0x90) && (cta_res[cta_lr-1]==0x00)) { 193 reader->last_geo.number_ecm =(cta_res[2]<<8) | (cta_res[3]); 194 cs_log("using ecm #%04x for long viaccess ecm",reader->last_geo.number_ecm); 195 } 196 } 197 } 198 184 199 185 200 // switch((atr[atrsize-4]<<8)|atr[atrsize-3]) … … 238 253 if (cfg->ulparent) 239 254 unlock_parental(reader); 240 241 if(card_write(reader, insFAC, ins8702_data, cta_res, &cta_lr) &&242 card_write(reader, ins8704, NULL, cta_res, &cta_lr) &&243 card_write(reader, ins8706, NULL, cta_res, &cta_lr) &&244 (cta_res[cta_lr-2]==0x90) && (cta_res[cta_lr-1]==0x00)) {245 reader->last_geo.number_ecm =(cta_res[2]<<8) | (cta_res[3]);246 cs_log("using ecm #%04x for long viaccess ecm",reader->last_geo.number_ecm);247 }248 else249 reader->last_geo.number_ecm = 0;250 255 251 256 cs_log("[viaccess-reader] ready for requests");
Note:
See TracChangeset
for help on using the changeset viewer.