From f90475b46028502ba6416fa10ea70d203ec1dcaa Mon Sep 17 00:00:00 2001 From: Henrik Kurelid Date: Tue, 21 Jul 2009 18:45:50 +0200 Subject: [PATCH] firedtv: correct version number and current/next in CA_PMT The version number in the CA_PMT message sent to the hardware was alwaysed set to zero. This could cause problems if the PMT would change during decryption of a channel since the new CA_PMT would have the same version number as the old. The version number is now copied from the original PMT. Signed-off-by: Henrik Kurelid --- drivers/media/dvb/firewire/firedtv-avc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/dvb/firewire/firedtv-avc.c b/drivers/media/dvb/firewire/firedtv-avc.c index 56d4653..86980d1 100644 --- a/drivers/media/dvb/firewire/firedtv-avc.c +++ b/drivers/media/dvb/firewire/firedtv-avc.c @@ -1073,7 +1073,7 @@ int avc_ca_pmt(struct firedtv *fdtv, char *msg, int length) /* c->operand[12] = XXXprogram_info_length + 12; */ c->operand[13] = msg[1]; /* Program number */ c->operand[14] = msg[2]; - c->operand[15] = 0x01; /* Version number=0 + current/next=1 */ + c->operand[15] = msg[3]; /* Version number and current/next */ c->operand[16] = 0x00; /* Section number=0 */ c->operand[17] = 0x00; /* Last section number=0 */ c->operand[18] = 0x1f; /* PCR_PID=1FFF */ -- 1.6.0.6