Re: [OpenWrt-Devel] [PATCH uqmi] Fix encoding phone number on sending sms

2014-12-22 Thread Felix Fietkau
On 2014-12-18 16:12, Sławomir Demeszko wrote:
 Return proper length of encoded phone number with odd count of digits,
 without this patch number is encoded in memory but length returned
 by function is not incremented and sms cannot be send.
 
 Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com
Applied, thanks.

- Felix
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH uqmi] Fix encoding phone number on sending sms

2014-12-18 Thread Sławomir Demeszko
Return proper length of encoded phone number with odd count of digits,
without this patch number is encoded in memory but length returned
by function is not incremented and sms cannot be send.

Signed-off-by: Sławomir Demeszko s.demes...@wireless-instruments.com
---
 commands-wms.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands-wms.c b/commands-wms.c
index b85cd70..02874f0 100644
--- a/commands-wms.c
+++ b/commands-wms.c
@@ -512,7 +512,7 @@ pdu_encode_semioctet(unsigned char *dest, const char *str)
str++;
}
 
-   return len;
+   return lower ? len : (len + 1);
 }
 
 static int
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel