Changeset 3114 for trunk/reader-videoguard1.c
- Timestamp:
- 09/21/10 04:09:53 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/reader-videoguard1.c
r3097 r3114 277 277 l = vg1_do_cmd(reader, ins54, NULL, rbuff, cta_res); 278 278 if (l > 0 && status_ok(cta_res + l)) { 279 memcpy(CW1, rbuff + 5, 8); 280 //set to 0 so client will know it is not valid if not overwritten with valid cw 281 memset(CW2, 0, 8); 282 if (!cw_is_valid(CW1)) //sky cards report 90 00 = ok but send cw = 00 when channel not subscribed 279 if (!cw_is_valid(rbuff+5,0)) //sky cards report 90 00 = ok but send cw = 00 when channel not subscribed 283 280 { 284 cs_log("[videoguard1-reader] class48 ins54 status 90 00 but cw=00 -> channel not subscribed "); 285 return ERROR; 286 } 287 if (er->ecm[0] & 1) { 288 memcpy(er->cw + 8, CW1, 8); 289 memcpy(er->cw + 0, CW2, 8); 281 cs_log("[videoguard1-reader] class48 ins54 status 90 00 but cw=00 -> channel not subscribed"); 282 return ERROR; 283 } 284 285 if(er->ecm[0]&1) { 286 memset(er->cw+0, 0, 8); 287 memcpy(er->cw+8, rbuff + 5, 8); 290 288 } else { 291 memcpy(er->cw + 0, CW1, 8);292 memcpy(er->cw + 8, CW2, 8);289 memcpy(er->cw+0, rbuff + 5, 8); 290 memset(er->cw+8, 0, 8); 293 291 } 294 292 return OK;
Note:
See TracChangeset
for help on using the changeset viewer.