Browse Source

Send ecm pid over camd35 protocol.

Since r10358 oscam expects ECM pid to be send over the camd3 protocol.
This allows ECMs to be retransmitted over gbox.

This change adds support for sending ecm pid.
Georgi Chorbadzhiyski 9 years ago
parent
commit
f69577a82b
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      camd-cs378x.c

+ 1
- 2
camd-cs378x.c View File

@@ -107,8 +107,7 @@ static int cs378x_do_ecm(struct camd *c, struct camd_msg *msg) {
107 107
 	init_2b(msg->ca_id      , c->cs378x.buf + 10);
108 108
 	init_4b(0               , c->cs378x.buf + 12); // Provider ID
109 109
 	init_2b(c->cs378x.msg_id, c->cs378x.buf + 16);
110
-	c->cs378x.buf[18] = 0xff;
111
-	c->cs378x.buf[19] = 0xff;
110
+	init_2b(msg->ts->ecm_pid, c->cs378x.buf + 18);
112 111
 
113 112
 	return cs378x_send_buf(c, to_send);
114 113
 }

Loading…
Cancel
Save