diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2016-02-03 18:22:34 +0100 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2016-02-08 00:45:39 +0100 |
commit | 215e18c9d45cdaa43705ae7c8f8cb43c0db28225 (patch) | |
tree | e83ea0a5c82e436f4b7da98f1f2e3e5da261eb4c /tests/edge/EdgeTest.cpp | |
parent | 2305afd86c3d3541d01fee0dee408a4510f96d4e (diff) |
cs: Add GprsCodingScheme::optionalPaddingBits
Return the amount of optional padding bits, which is 6*8 for
MCS-3 and MCS-6 and 0 for all other coding schemes. The padding
is needed the encode 68 byte data blocks (MCS-8) with these schemes.
See TS 44.060, 9.3.2.1 and Annex J for details.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'tests/edge/EdgeTest.cpp')
-rw-r--r-- | tests/edge/EdgeTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/edge/EdgeTest.cpp b/tests/edge/EdgeTest.cpp index 02e9bc2..80997a4 100644 --- a/tests/edge/EdgeTest.cpp +++ b/tests/edge/EdgeTest.cpp @@ -92,7 +92,8 @@ static void check_coding_scheme(GprsCodingScheme& cs, GprsCodingScheme::Mode mod OSMO_ASSERT(cs.isFamilyCompatible(new_cs)); OSMO_ASSERT(cs.isCompatible(new_cs)); if (need_padding) { - OSMO_ASSERT(new_cs.maxDataBlockBytes() > cs.maxDataBlockBytes()); + OSMO_ASSERT(new_cs.maxDataBlockBytes() == + new_cs.optionalPaddingBits()/8 + cs.maxDataBlockBytes()); } else { OSMO_ASSERT(new_cs.maxDataBlockBytes() == cs.maxDataBlockBytes()); } |