From c96b4806855ce24f78f46a8ef43ffd264a3cb12f Mon Sep 17 00:00:00 2001 From: Sam Stenvall Date: Mon, 29 Jul 2024 10:17:34 +0300 Subject: [PATCH] [test] Use old operator_search payload --- src/ca.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/ca.c b/src/ca.c index 5686540132..33651a3243 100644 --- a/src/ca.c +++ b/src/ca.c @@ -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 @@ -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: {