summaryrefslogtreecommitdiff
path: root/src/pdu_encode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdu_encode.c')
-rw-r--r--src/pdu_encode.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pdu_encode.c b/src/pdu_encode.c
index 65d2316..f8d6160 100644
--- a/src/pdu_encode.c
+++ b/src/pdu_encode.c
@@ -277,13 +277,14 @@ int pdu_encode_user_data(char *pdu_str, size_t len, struct pdu_info *pdu, int *n
return -1;
}
- if (pdu->data_coding.general.alphabet == PDU_ALPHABET_CDMA_DEFAULT) {
+ if ((pdu->data_coding.general.alphabet == PDU_ALPHABET_CDMA_DEFAULT) &&
+ !strcmp(Global.core.model, "DE910-DUAL")) {
// user_data_len is stored as number of encoded octets
- // (but GSM is stored as originial # of septets)
- log_debug("putting nr_octets into PDU as data length (CDMA)");
+ log_debug("putting nr_octets into PDU as data length (DE910-DUAL)");
tmp = hex_byte_encode(pdu_str, len, *nr_octets);
}
else {
+ // user_data_len is stored as number of septets
log_debug("putting user_data_len into PDU as data length");
tmp = hex_byte_encode(pdu_str, len, pdu->user_data_len);
}