commit | d5d5e1d460bc55f10c007ccaa92cef2972711132 | [log] [tgz] |
---|---|---|
author | Daniel Willmann <daniel@totalueberwachung.de> | Sat Aug 15 03:01:17 2009 +0200 |
committer | Daniel Willmann <daniel@totalueberwachung.de> | Sat Aug 15 03:19:40 2009 +0200 |
tree | fcd86ed323d6071a111a43e20cd2a2d097c59b94 | |
parent | 6b024cb83a02d4fec843af8951b481ba8dda0ee0 [diff] |
Fix decoding of SMS Data Coding Scheme
diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c index 6290ce6..7a30653 100644 --- a/openbsc/src/gsm_04_11.c +++ b/openbsc/src/gsm_04_11.c
@@ -262,7 +262,7 @@ if (cgbits & 2) DEBUGP(DSMS, "Compressed SMS not supported yet\n"); - switch (dcs & 3) { + switch ((dcs >> 2)&0x03) { case 0: alpha = DCS_7BIT_DEFAULT; break;