mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
.
This commit is contained in:
@@ -26,7 +26,6 @@ hw_caps_t *get_hwcaps(void)
|
||||
memset(&caps, 0, sizeof(hw_caps_t));
|
||||
|
||||
initialized = 1;
|
||||
const char *tmp;
|
||||
char buf[64];
|
||||
int len = -1;
|
||||
int fd = open("/proc/stb/info/model", O_RDONLY);
|
||||
|
@@ -36,7 +36,7 @@ int eDVBCICAManagerSession::receivedAPDU(const unsigned char *tag, const void *d
|
||||
printf("%04x ", (((const unsigned char*)data)[i] << 8) | (((const unsigned char*)data)[i + 1]));
|
||||
caids.push_back((((const unsigned char*)data)[i] << 8) | (((const unsigned char*)data)[i + 1]));
|
||||
}
|
||||
sort(caids.begin(), caids.end());
|
||||
std::sort(caids.begin(), caids.end());
|
||||
printf("\n");
|
||||
|
||||
slot->pollConnection = false;
|
||||
|
@@ -36,7 +36,7 @@ int eDVBCIResourceManagerSession::receivedAPDU(const unsigned char *tag, const v
|
||||
state = stateFinal;
|
||||
break;
|
||||
default:
|
||||
printf("%s %s unknown APDU tag 9F 80 %02x\n", tag[2], FILENAME, __FUNCTION__);
|
||||
printf("%s %s unknown APDU tag 9F 80 %02x\n", FILENAME, __FUNCTION__, tag[2]);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
@@ -88,6 +88,7 @@ void eDVBCISession::sendSPDU(tSlot *slot, unsigned char tag, const void *data, i
|
||||
|
||||
if (apdu)
|
||||
memcpy(ptr, apdu, alen);
|
||||
|
||||
ptr += alen;
|
||||
sendData(slot, pkt, ptr - pkt);
|
||||
}
|
||||
@@ -110,6 +111,7 @@ void eDVBCISession::recvCreateSessionResponse(const unsigned char *data)
|
||||
|
||||
void eDVBCISession::recvCloseSessionRequest(const unsigned char *data)
|
||||
{
|
||||
status = data[0];
|
||||
state = stateInDeletion;
|
||||
action = 1;
|
||||
printf("close Session Request\n");
|
||||
@@ -145,7 +147,7 @@ eDVBCISession* eDVBCISession::createSession(tSlot *slot, const unsigned char *re
|
||||
tag |= resource_identifier[2] << 8;
|
||||
tag |= resource_identifier[3];
|
||||
|
||||
printf("Tag: %08X\n", tag);
|
||||
printf("Tag: %08lx\n", tag);
|
||||
|
||||
switch (tag)
|
||||
{
|
||||
|
Reference in New Issue
Block a user