summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2010-09-20 20:59:23 +0200
committerSylvain Munaut <tnt@246tNt.com>2010-09-20 20:59:23 +0200
commit47ee693170d589f760c4a9c7a5c4ad0b289aa65d (patch)
treee9c8b9c25af6aa35ff94738434cc0df7dfc3170e /src
parenta55caad039b80f24d604f38f7d3950d6830c8e11 (diff)
gsm48: Fix gsm48_encode_called - Set no extension bit
The highest bit must be set as "No extension byte" marker, so that the next byte is considered to be the BCD number and not some more control stuff Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src')
-rw-r--r--src/gsm48_ie.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gsm48_ie.c b/src/gsm48_ie.c
index 71910c6e..0e270881 100644
--- a/src/gsm48_ie.c
+++ b/src/gsm48_ie.c
@@ -249,7 +249,8 @@ int gsm48_encode_called(struct msgb *msg,
int ret;
/* octet 3 */
- lv[1] = called->plan;
+ lv[1] = 0x80; /* no extension */
+ lv[1] |= called->plan;
lv[1] |= called->type << 4;
/* octet 4..N, octet 2 */