diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-02-08 15:47:19 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-02-14 12:19:18 +0100 |
commit | 49b83ec3a350d08437522ab4c1a9d67cfb05e935 (patch) | |
tree | 740f6faca0ca871b04acd18092cb876d16ecc62d /src/tbf_dl.cpp | |
parent | 78ce59137fa0bd0e6b11bfc9ea24c93e6b2a8d2a (diff) |
dl tbf: calculate CPS only for EGPRS
Patch-by: Aravind Sirsikar <Arvind.Sirsikar@radisys.com>
Change-Id: I81b8e1d10bfe9efba3a9f04bced66f87d93285dd
Diffstat (limited to 'src/tbf_dl.cpp')
-rw-r--r-- | src/tbf_dl.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp index 78f06e9b..c04a84e2 100644 --- a/src/tbf_dl.cpp +++ b/src/tbf_dl.cpp @@ -762,8 +762,11 @@ struct msgb *gprs_rlcmac_dl_tbf::create_dl_acked_block( msg_data, block_data); } - OSMO_ASSERT(ARRAY_SIZE(punct) >= 2); - rlc.cps = gprs_rlc_mcs_cps(cs, punct[0], punct[1], need_padding); + /* Calculate CPS only for EGPRS case */ + if (cs.isEgprs()) { + OSMO_ASSERT(ARRAY_SIZE(punct) >= 2); + rlc.cps = gprs_rlc_mcs_cps(cs, punct[0], punct[1], need_padding); + } /* If the TBF has just started, relate frames_since_last_poll to the * current fn */ |