[PATCH 16/27] stkutil: Add provide local info command parser
Yang Gu
yang.gu at intel.com
Thu May 13 03:48:33 PDT 2010
---
src/stkutil.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/src/stkutil.c b/src/stkutil.c
index 3aaab37..0484687 100644
--- a/src/stkutil.c
+++ b/src/stkutil.c
@@ -2606,6 +2606,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)
{
@@ -2700,6 +2712,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;
--
1.7.0.4
More information about the ofono
mailing list