summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorerin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2008-01-09 05:25:53 +0000
committererin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2008-01-09 05:25:53 +0000
commit9567f52dbf14097d8e19d0d858594d971aa725ec (patch)
tree377a1981ab352d11e81370b68e2c1b7a0bc64d1e /src
parent3e57d49d7cf1fe0824720d720896ec181e35bd64 (diff)
gsmd: add TP-MTI to gsmd_sms (Erin Yueh)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3791 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'src')
-rw-r--r--src/gsmd/sms_pdu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gsmd/sms_pdu.c b/src/gsmd/sms_pdu.c
index 08a0c1a..3d88663 100644
--- a/src/gsmd/sms_pdu.c
+++ b/src/gsmd/sms_pdu.c
@@ -103,6 +103,7 @@ int sms_pdu_to_msg(struct gsmd_sms_list *dst,
/* TP-MTI */
switch (src[0] & 3) {
case GSMD_SMS_TP_MTI_DELIVER:
+ dst->payload.tp_mti = GSMD_SMS_TP_MTI_DELIVER;
if (len < 3)
return 1;
i = sms_number_bytelen(src[2], src[1]);
@@ -167,6 +168,7 @@ int sms_pdu_to_msg(struct gsmd_sms_list *dst,
break;
case GSMD_SMS_TP_MTI_SUBMIT:
+ dst->payload.tp_mti = GSMD_SMS_TP_MTI_SUBMIT;
if (len < 4)
return 1;
i = sms_number_bytelen(src[3], src[2]);
@@ -217,6 +219,7 @@ int sms_pdu_to_msg(struct gsmd_sms_list *dst,
dst->payload.data[i] = 0;
break;
case GSMD_SMS_TP_MTI_STATUS_REPORT:
+ dst->payload.tp_mti = GSMD_SMS_TP_MTI_STATUS_REPORT;
if (len < 3)
return 1;
personal git repositories of Harald Welte. Your mileage may vary