projects
/
osmocom-bb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a55caad
)
gsm48: Fix gsm48_encode_called - Set no extension bit
author
Sylvain Munaut
<tnt@246tNt.com>
Mon, 20 Sep 2010 18:59:23 +0000
(20:59 +0200)
committer
Sylvain Munaut
<tnt@246tNt.com>
Mon, 20 Sep 2010 18:59:23 +0000
(20:59 +0200)
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>
src/gsm48_ie.c
patch
|
blob
|
history
diff --git
a/src/gsm48_ie.c
b/src/gsm48_ie.c
index
71910c6
..
0e27088
100644
(file)
--- 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 */