diff options
author | erin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2008-01-16 06:44:11 +0000 |
---|---|---|
committer | erin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2008-01-16 06:44:11 +0000 |
commit | 6274c0663e6b7b634187ace52d2a3b1f4b29584a (patch) | |
tree | 760a7c97115b92c41cbad623ee1389f771b6441a | |
parent | 71dfac82831d431a9e90ccce08c61322b1c14036 (diff) |
gsmd: update sms pdu len and fix typos (Wang Yanke)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3853 99fdad57-331a-0410-800a-d7fa5415bdb3
-rw-r--r-- | include/gsmd/usock.h | 8 | ||||
-rw-r--r-- | src/gsmd/sms_pdu.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/gsmd/usock.h b/include/gsmd/usock.h index 6200118..2072b54 100644 --- a/include/gsmd/usock.h +++ b/include/gsmd/usock.h @@ -196,15 +196,15 @@ enum gsmd_msg_sms_fmt { enum { MESSAGE_CLASS_CLASS0 = 0x00, MESSAGE_CLASS_CLASS1 = 0x01, - MESSAGE_CLASS_CLASS2 = 0x10, - MESSAGE_CLASS_CLASS3 = 0x11, + MESSAGE_CLASS_CLASS2 = 0x02, + MESSAGE_CLASS_CLASS3 = 0x03, }; enum gsmd_sms_alphabet { ALPHABET_DEFAULT = (0x00<<2), ALPHABET_8BIT = (0x01<<2), - ALPHABET_UCS2 = (0x10<<2), - ALPHABET_RESERVED = (0x11<<2), + ALPHABET_UCS2 = (0x02<<2), + ALPHABET_RESERVED = (0x03<<2), }; /* bit 1 & bit0 */ diff --git a/src/gsmd/sms_pdu.c b/src/gsmd/sms_pdu.c index 3d88663..b5774d8 100644 --- a/src/gsmd/sms_pdu.c +++ b/src/gsmd/sms_pdu.c @@ -46,7 +46,7 @@ static int sms_data_bytelen(u_int8_t data_coding_scheme, u_int8_t len) case ALPHABET_8BIT: return len; case ALPHABET_UCS2: - return len * 2; + return len; } return 0; } |