aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf_dl.cpp
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-11-27 15:17:34 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-12-15 15:17:51 +0100
commit86b6f05d19c8559b99d548730e54c1a4bfb7beba (patch)
treef22e5bd988217e5f2b4164d0613381829b69a58b /src/tbf_dl.cpp
parent5643f35fb4d09b160c4cd14c8e0ef6f2b7dce07e (diff)
edge: Support EGPRS multislot class handling in tbf_alloc
Add an egprs_ms_class argument to the allocation functions and set/pass it where necessary. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/tbf_dl.cpp')
-rw-r--r--src/tbf_dl.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp
index 64fbef4e..d07f3233 100644
--- a/src/tbf_dl.cpp
+++ b/src/tbf_dl.cpp
@@ -128,6 +128,7 @@ static int tbf_new_dl_assignment(struct gprs_rlcmac_bts *bts,
const char *imsi,
const uint32_t tlli, const uint32_t tlli_old,
const uint8_t ms_class,
+ const uint8_t egprs_ms_class,
struct gprs_rlcmac_dl_tbf **tbf)
{
uint8_t ss;
@@ -161,7 +162,7 @@ static int tbf_new_dl_assignment(struct gprs_rlcmac_bts *bts,
// Create new TBF (any TRX)
#warning "Copy and paste with alloc_ul_tbf"
/* set number of downlink slots according to multislot class */
- dl_tbf = tbf_alloc_dl_tbf(bts, ms, use_trx, ms_class, ss);
+ dl_tbf = tbf_alloc_dl_tbf(bts, ms, use_trx, ms_class, egprs_ms_class, ss);
if (!dl_tbf) {
LOGP(DRLCMAC, LOGL_NOTICE, "No PDCH resource\n");
@@ -235,8 +236,8 @@ int gprs_rlcmac_dl_tbf::handle(struct gprs_rlcmac_bts *bts,
}
if (!dl_tbf) {
- rc = tbf_new_dl_assignment(bts, imsi, tlli, tlli_old, ms_class,
- &dl_tbf);
+ rc = tbf_new_dl_assignment(bts, imsi, tlli, tlli_old,
+ ms_class, 0, &dl_tbf);
if (rc < 0)
return rc;
}