libosmocore/src/gsm
Max c8cf820595 Distinguish between unsupported and invalid MCS
Previously MCS0 was incorrectly set for some of type1 header values
while according to 3GPP TS 44.060 it can only be set for type3. Fix
this:

* use EGPRS_MCS* constants instead of magic values
* do not set MCS0 for reserved bits values in EGPRS header type1
* return different error codes for invalid and unsupported MCS as well
  as for other decoding errors

Note: there's no need to adjust tests because MCS0 decoding is not
supported but it's better to explicitly distinguish between unsupported
and invalid values nevertheless.

Change-Id: Id665d5c0cf50efa18b1bcbf4f17359418a380f9e
Related: OS#1524
2017-05-24 22:12:56 +00:00
..
milenage milenage/aes: Address undefined behavior on bitshift 2016-04-24 20:57:30 +02:00
Makefile.am add libpseudotalloc as super-simplistic talloc replacement 2017-05-17 15:15:52 +01:00
a5.c Make C4 function globally available 2016-06-29 16:32:55 +00:00
abis_nm.c doc: fix incorrect return value description 2017-05-10 13:32:49 +02:00
apn.c gsm: Add APN conversion functions 2016-01-15 14:46:19 +01:00
auth_comp128v1.c Deprecate comp128 2016-04-22 15:10:55 +02:00
auth_comp128v23.c Refactor COMP128v23 implementation and add test suit 2013-12-07 18:10:38 +01:00
auth_core.c fix spelling in API docu, command reply, logging, descriptions 2017-04-23 14:34:18 +00:00
auth_milenage.c auth_milenage: fix check against too large ind 2017-03-16 05:32:30 +01:00
comp128.c Deprecate comp128 2016-04-22 15:10:55 +02:00
comp128v23.c Refactor COMP128v23 implementation and add test suit 2013-12-07 18:10:38 +01:00
gan.c gan: Mark gan_pdisc_vals[] as public / non-static symbol 2016-11-11 14:49:14 +00:00
gea.c Add GEA3 & GEA4 ciphers 2016-07-11 19:15:24 +00:00
gprs_cipher_core.c gprs_cipher_core: Use typecase to avoid sanitizer error 2017-01-06 10:03:30 +00:00
gprs_gea.c Add GEA3 & GEA4 ciphers 2016-07-11 19:15:24 +00:00
gprs_rlc.c Distinguish between unsupported and invalid MCS 2017-05-24 22:12:56 +00:00
gsm48.c use osmo_{htonl,htons,ntohl,ntohs}() functions all over libosmocore 2017-05-15 13:42:03 +02:00
gsm48_ie.c gsm/gsm48ie: Fix range 256 W[i] decoding 2014-01-13 15:15:11 +01:00
gsm0341.c use osmo_{htonl,htons,ntohl,ntohs}() functions all over libosmocore 2017-05-15 13:42:03 +02:00
gsm0411_smc.c timer: add osmo_timer_setup() 2017-05-09 12:10:51 +02:00
gsm0411_smr.c gsm/gsm0411_smr.c: strip unused variable 2017-05-17 10:15:09 +00:00
gsm0411_utils.c Fix compilation warnings: missing includes: gsm0411_utils.c, lapd_core.c, oap_test.c 2017-01-13 09:36:25 +00:00
gsm0480.c gsm0480: add gsm0480_create_ussd_notify() and *_release_complete() 2016-12-01 15:54:35 +00:00
gsm0502.c import gsm0502_calc_paging_group() from openbsc 2011-06-26 14:47:16 +02:00
gsm0808.c use osmo_{htonl,htons,ntohl,ntohs}() functions all over libosmocore 2017-05-15 13:42:03 +02:00
gsm0808_utils.c gsm0808 + ipa: fix compilation on systems without sys/socket.h 2017-05-15 13:42:03 +02:00
gsm_04_08_gprs.c gsm_04_08: Add missing GSM cause value 2017-05-12 13:53:12 +00:00
gsm_utils.c Add function to make Uplink Measurement 2016-05-17 16:10:31 +00:00
gsup.c gsup decode: fix expectation of AUTS length, should be 14 2017-02-21 16:19:40 +01:00
ipa.c gsm0808 + ipa: fix compilation on systems without sys/socket.h 2017-05-15 13:42:03 +02:00
kasumi.c gsm: Add Kasumi cipher implementation 2014-06-16 14:59:30 +02:00
lapd_core.c use osmo_{htonl,htons,ntohl,ntohs}() functions all over libosmocore 2017-05-15 13:42:03 +02:00
lapdm.c use osmo_{htonl,htons,ntohl,ntohs}() functions all over libosmocore 2017-05-15 13:42:03 +02:00
libosmogsm.map Make EARFCN size calculation more robust 2017-05-14 08:51:26 +00:00
oap.c gsm/oap: more robust: decode presence as clearly either 1 or 0 2016-12-11 03:42:58 +01:00
rsl.c rsl: add rsl_act_type_name() 2016-07-23 15:32:55 +02:00
rxlev_stat.c bitvec: add bitvec_find_first_bit_pos() from gsm/rxlev_stat.c 2011-03-28 20:00:45 +02:00
sysinfo.c Make EARFCN size calculation more robust 2017-05-14 08:51:26 +00:00
tlv_parser.c Add parsed TLV helpers from OsmoBTS 2017-01-06 10:21:11 +00:00