Only check CC if we are supposed to do so
This commit is contained in:
parent
36175e05f7
commit
488380100e
1 changed files with 8 additions and 7 deletions
15
transports.c
15
transports.c
|
@ -334,15 +334,16 @@ transport_recv_tsb(th_transport_t *t, int pid, uint8_t *tsb)
|
|||
|
||||
cc = tsb[3] & 0xf;
|
||||
|
||||
if(pi->cc_valid && cc != pi->cc) {
|
||||
/* Incorrect CC */
|
||||
avgstat_add(&t->tht_cc_errors, 1, dispatch_clock);
|
||||
err = 1;
|
||||
if(tsb[3] & 0x10) {
|
||||
if(pi->cc_valid && cc != pi->cc) {
|
||||
/* Incorrect CC */
|
||||
avgstat_add(&t->tht_cc_errors, 1, dispatch_clock);
|
||||
err = 1;
|
||||
}
|
||||
pi->cc_valid = 1;
|
||||
pi->cc = (cc + 1) & 0xf;
|
||||
}
|
||||
|
||||
pi->cc_valid = 1;
|
||||
pi->cc = (cc + 1) & 0xf;
|
||||
|
||||
avgstat_add(&t->tht_rate, 188, dispatch_clock);
|
||||
|
||||
ch = t->tht_channel;
|
||||
|
|
Loading…
Add table
Reference in a new issue