summaryrefslogtreecommitdiffstats
path: root/src/stkutil.c
diff options
context:
space:
mode:
authorYang Gu <yang.gu@intel.com>2010-05-13 18:48:33 +0800
committerDenis Kenzior <denkenz@gmail.com>2010-05-13 13:53:08 -0500
commit2f1bb15dcfa9a89e8c97b5b74c79edc49fd23f69 (patch)
tree638643d16dfdc0e00fc1840e242542cd5a2b21e9 /src/stkutil.c
parenta6fb6b54fd5733c13812c488058bb034f54941b6 (diff)
downloadofono-2f1bb15dcfa9a89e8c97b5b74c79edc49fd23f69.tar.bz2
stkutil: Add provide local info command parser
Diffstat (limited to 'src/stkutil.c')
-rw-r--r--src/stkutil.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/stkutil.c b/src/stkutil.c
index 2ed110a3..82d3e77c 100644
--- a/src/stkutil.c
+++ b/src/stkutil.c
@@ -2573,6 +2573,18 @@ static gboolean parse_polling_off(struct stk_command *command,
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,
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:
ok = parse_polling_off(command, &iter);
break;
+ case STK_COMMAND_TYPE_PROVIDE_LOCAL_INFO:
+ ok = parse_provide_local_info(command, &iter);
+ break;
default:
ok = FALSE;
break;