mirror of git://git.sysmocom.de/ofono
stkutil: Add provide local info command parser
This commit is contained in:
parent
a6fb6b54fd
commit
2f1bb15dcf
|
@ -2573,6 +2573,18 @@ static gboolean parse_polling_off(struct stk_command *command,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static gboolean parse_provide_local_info(struct stk_command *command,
|
||||||
|
struct comprehension_tlv_iter *iter)
|
||||||
|
{
|
||||||
|
if (command->src != STK_DEVICE_IDENTITY_TYPE_UICC)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
if (command->dst != STK_DEVICE_IDENTITY_TYPE_TERMINAL)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
struct stk_command *stk_command_new_from_pdu(const unsigned char *pdu,
|
struct stk_command *stk_command_new_from_pdu(const unsigned char *pdu,
|
||||||
unsigned int len)
|
unsigned int len)
|
||||||
{
|
{
|
||||||
|
@ -2667,6 +2679,9 @@ struct stk_command *stk_command_new_from_pdu(const unsigned char *pdu,
|
||||||
case STK_COMMAND_TYPE_POLLING_OFF:
|
case STK_COMMAND_TYPE_POLLING_OFF:
|
||||||
ok = parse_polling_off(command, &iter);
|
ok = parse_polling_off(command, &iter);
|
||||||
break;
|
break;
|
||||||
|
case STK_COMMAND_TYPE_PROVIDE_LOCAL_INFO:
|
||||||
|
ok = parse_provide_local_info(command, &iter);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
ok = FALSE;
|
ok = FALSE;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue