[OpenWrt-Devel] [PATCH uqmi] Add support for 16-bit reference number in concatenated SMS.
Sławomir Demeszko
s.demeszko at wireless-instruments.com
Wed Dec 17 08:34:48 EST 2014
Signed-off-by: Sławomir Demeszko <s.demeszko at wireless-instruments.com>
---
commands-wms.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/commands-wms.c b/commands-wms.c
index 47d4d76..6ac52eb 100644
--- a/commands-wms.c
+++ b/commands-wms.c
@@ -179,11 +179,16 @@ static int decode_udh(const unsigned char *data)
break;
switch (type) {
- case 0:
+ case 0x00:
blobmsg_add_u32(&status, "concat_ref", (uint32_t) val[0]);
blobmsg_add_u32(&status, "concat_part", (uint32_t) val[2]);
blobmsg_add_u32(&status, "concat_parts", (uint32_t) val[1]);
break;
+ case 0x08:
+ blobmsg_add_u32(&status, "concat_ref", (uint32_t) (val[0] << 8 | val[1]));
+ blobmsg_add_u32(&status, "concat_part", (uint32_t) val[3]);
+ blobmsg_add_u32(&status, "concat_parts", (uint32_t) val[2]);
+ break;
default:
break;
}
--
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list