Skip to content

Commit

Permalink
[test] Use old operator_search payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Jalle19 committed Jul 29, 2024
1 parent b348fea commit c96b480
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/ca.c
Original file line number Diff line number Diff line change
Expand Up @@ -1830,17 +1830,18 @@ static int CIPLUS_APP_OPRF_handler(ca_session_t *session, int tag,
uint8_t *data, int data_length) {
hexdump("CIPLUS_APP_OPRF_handler", data, data_length);

uint8_t data_oprf_search_start[] = {
0x06, // unattended mode + service types length
0x01, // advertise support for MPEG-2/H.264/HEVC TV and radio
0x02, 0x16, 0x19, 0x1F, 0x20,
0x04, // delivery capability length
0x43, // DVB-S
0x79, // DVB-S2
0x7F,
0x17, // DVB-S2X
0x00, // application capability length
};
uint8_t data_oprf_search[9];
data_oprf_search[0] = 0x03; /* unattended mode bit=0 + length in bytes
of the service types */
data_oprf_search[1] = 0x01; /* service MPEG-2 television (0x01) */
data_oprf_search[2] = 0x16; /* service h264 SD (0x16) */
data_oprf_search[3] = 0x19; /* service h264 HD (0x19) */
data_oprf_search[4] = 0x02; /* length in bytes of the delivery_capability */
data_oprf_search[5] = 0x43; /* DVB-S */
data_oprf_search[6] = 0x79; /* DVB-S2 */
data_oprf_search[7] =
0x01; /* length in bytes of the application_capability */
data_oprf_search[8] = 0x00; /* System Software Update service */

uint8_t data_oprf_tune_status[] = {
0xFF, // descruptor number
Expand Down Expand Up @@ -1901,7 +1902,7 @@ static int CIPLUS_APP_OPRF_handler(ca_session_t *session, int tag,

// Initiate a profile search
ca_write_apdu(session, CIPLUS_TAG_OPERATOR_SEARCH_START,
data_oprf_search_start, sizeof(data_oprf_search_start));
data_oprf_search, sizeof(data_oprf_search));
break;
}
case CIPLUS_TAG_OPERATOR_TUNE: {
Expand Down

0 comments on commit c96b480

Please sign in to comment.