Review at  https://gerrit.osmocom.org/2675

libosmocoding: decode MCS-0 properly

As MCS-0 is effectively CS-0, call corresponding decode function instead
of returning error code.

Change-Id: I424f7b5494846d2d5cf890f99251dae4ad5bd7d1
---
M src/coding/gsm0503_coding.c
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/75/2675/1

diff --git a/src/coding/gsm0503_coding.c b/src/coding/gsm0503_coding.c
index 30ec387..bcd758b 100644
--- a/src/coding/gsm0503_coding.c
+++ b/src/coding/gsm0503_coding.c
@@ -829,6 +829,8 @@
                return -1;
 
        switch (cps.mcs) {
+       case EGPRS_MCS0:
+               return gsm0503_pdtch_decode(l2_data, bursts, usf_p, n_errors, 
n_bits_total);
        case EGPRS_MCS1:
        case EGPRS_MCS2:
        case EGPRS_MCS3:

-- 
To view, visit https://gerrit.osmocom.org/2675
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I424f7b5494846d2d5cf890f99251dae4ad5bd7d1
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Max <msur...@sysmocom.de>

Reply via email to