diff options
author | Max <msuraev@sysmocom.de> | 2019-03-25 16:32:50 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2019-03-26 11:19:30 +0100 |
commit | 8a8e0fb2675878c045d9770da0940c7c895b89ec (patch) | |
tree | f24bf858ddbc36b3f51ca0270a56b5a4e606e5f0 /src/encoding.cpp | |
parent | fb3fd093536af6c4f40709b8170bf32cf435fc94 (diff) |
MCS: add mcs_is_*() helpers
In preparation for Channel Coding Command encoder in follow-up patches
let's add necessary helpers. Those are similar to previously used
helpers from GprsCodingScheme class but without CamelCase and with less
typo chances between Gprs and Egprs cases.
Change-Id: I6699cbc8d7ae766fa4d2b3d37e5f9ff1cf158b7e
Diffstat (limited to 'src/encoding.cpp')
-rw-r--r-- | src/encoding.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/encoding.cpp b/src/encoding.cpp index e21a7fcf..9920b461 100644 --- a/src/encoding.cpp +++ b/src/encoding.cpp @@ -1605,12 +1605,12 @@ Encoding::AppendResult Encoding::rlc_data_to_dl_append( gprs_llc *llc, int *offset, int *num_chunks, uint8_t *data_block, bool is_final, int *count_payload) { - if (cs.isGprs()) + if (mcs_is_gprs(cs)) return rlc_data_to_dl_append_gprs(rdbi, llc, offset, num_chunks, data_block, is_final, count_payload); - if (cs.isEgprs()) + if (mcs_is_edge(cs)) return rlc_data_to_dl_append_egprs(rdbi, llc, offset, num_chunks, data_block, is_final, count_payload); |