From 7247d56f6787bc1c7e573c2b3df78d0d46fee9eb Mon Sep 17 00:00:00 2001 From: jserv Date: Wed, 17 Oct 2007 06:14:20 +0000 Subject: Added 'Ask Status report' option in shell. From: Andrzej Zaborowski I also moved the .ask_ds field from struct gsmd_sms into struct gsmd_sms_submit because it seemed more logical being a property of SMS-SUBMIT PDU. git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3201 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/gsmd/sms_pdu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gsmd') diff --git a/src/gsmd/sms_pdu.c b/src/gsmd/sms_pdu.c index d1235dd..d461999 100644 --- a/src/gsmd/sms_pdu.c +++ b/src/gsmd/sms_pdu.c @@ -247,7 +247,8 @@ int sms_pdu_make_smssubmit(char *dest, const struct gsmd_sms_submit *src) GSMD_SMS_TP_MTI_SUBMIT | (0 << 2) | /* Reject Duplicates: 0 */ GSMD_SMS_TP_VPF_NOT_PRESENT | - GSMD_SMS_TP_SRR_STATUS_REQUEST | + (src->ask_ds ? GSMD_SMS_TP_SRR_STATUS_REQUEST : + GSMD_SMS_TP_SRR_NOT_REQUEST) | (src->payload.has_header ? GSMD_SMS_TP_UDHI_WITH_HEADER : GSMD_SMS_TP_UDHI_NO_HEADER) | GSMD_SMS_TP_RP_NOT_SET; -- cgit v1.2.3