Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cwc: reset preferred CA PID when NOKs are received and PID is not locked
  • Loading branch information
perexg committed Oct 31, 2014
1 parent d347c3d commit fc96ba2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/descrambler/cwc.c
Expand Up @@ -768,6 +768,9 @@ handle_ecm_reply(cwc_service_t *ct, ecm_section_t *es, uint8_t *msg,
t->s_dvb_svcname, seq, delay, ct->td_nicename);
ct->td_keystate = DS_FORBIDDEN;
ct->ecm_state = ECM_RESET;
/* this pid is not valid, force full scan */
if (t->s_dvb_prefcapid == ct->cs_channel && t->s_dvb_prefcapid_lock == 0)
t->s_dvb_prefcapid = 0;
}
return;

Expand Down Expand Up @@ -875,9 +878,8 @@ cwc_running_reply(cwc_t *cwc, uint8_t msgtype, uint8_t *msg, int len)
}
}
tvhlog(LOG_WARNING, "cwc", "Got unexpected ECM reply (seqno: %d)", seq);
LIST_FOREACH(ct, &cwc->cwc_services, cs_link) {
LIST_FOREACH(ct, &cwc->cwc_services, cs_link)
ct->ecm_state = ECM_RESET;
}
break;

case 0xD3:
Expand Down

0 comments on commit fc96ba2

Please sign in to comment.