diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2009-08-15 03:01:17 +0200 |
---|---|---|
committer | Daniel Willmann <daniel@totalueberwachung.de> | 2009-08-15 03:19:40 +0200 |
commit | d5d5e1d460bc55f10c007ccaa92cef2972711132 (patch) | |
tree | fcd86ed323d6071a111a43e20cd2a2d097c59b94 /openbsc/src/gsm_04_11.c | |
parent | 6b024cb83a02d4fec843af8951b481ba8dda0ee0 (diff) |
Fix decoding of SMS Data Coding Scheme
Diffstat (limited to 'openbsc/src/gsm_04_11.c')
-rw-r--r-- | openbsc/src/gsm_04_11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c index 6290ce6d3..7a3065359 100644 --- a/openbsc/src/gsm_04_11.c +++ b/openbsc/src/gsm_04_11.c @@ -262,7 +262,7 @@ enum sms_alphabet gsm338_get_sms_alphabet(u_int8_t dcs) 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; |