[OpenWrt-Devel] [PATCH uqmi] Fix improper part number in multipart SMS text messages

Sławomir Demeszko s.demeszko at wireless-instruments.com
Tue Nov 18 11:07:32 EST 2014


Received multipart SMS messages has part number always one too high.
---
 commands-wms.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands-wms.c b/commands-wms.c
index 01e6867..9b9aac3 100644
--- a/commands-wms.c
+++ b/commands-wms.c
@@ -178,7 +178,7 @@ static void decode_udh(const unsigned char *data)
 		switch (type) {
 		case 0:
 			blobmsg_add_u32(&status, "concat_ref", (uint32_t) val[0]);
-			blobmsg_add_u32(&status, "concat_part", (uint32_t) val[2] + 1);
+			blobmsg_add_u32(&status, "concat_part", (uint32_t) val[2]);
 			blobmsg_add_u32(&status, "concat_parts", (uint32_t) val[1]);
 			break;
 		default:
-- 
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