aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlc.h
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2016-01-13 13:09:09 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2016-02-05 18:27:10 +0100
commit70955c765cbd7d58f8e9fec134becfd53ea395e1 (patch)
tree1a0eac55436138b31a87b9299e5de104da80d138 /src/rlc.h
parenta88d065606a29f5cd7d140fbacb49d78428ceb98 (diff)
edge: Provide and use CS -> CPS conversion
The MS' RLC receiver needs a valid CPS field to decode the block. Add the function gprs_rlc_mcs_cps to generate the CPS value based on coding scheme, puncturing, and padding. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/rlc.h')
-rw-r--r--src/rlc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rlc.h b/src/rlc.h
index a11b4ce8..76af4e10 100644
--- a/src/rlc.h
+++ b/src/rlc.h
@@ -105,6 +105,7 @@ void gprs_rlc_data_info_init_ul(struct gprs_rlc_data_info *rlc,
GprsCodingScheme cs);
void gprs_rlc_data_block_info_init(struct gprs_rlc_data_block_info *rdbi,
GprsCodingScheme cs);
+unsigned int gprs_rlc_mcs_cps(GprsCodingScheme cs, int punct, int with_padding);
/*
* I hold the currently transferred blocks and will provide