enb: fix UL max rate calculation

don't double the maximum rate for UL traffic in MIMO since
we are only using MIMO in the downlink

Change-Id: I018e8ba8cb822a4bd57b8d0e420dd496172ac229
This commit is contained in:
Andre Puschmann 2020-05-26 11:32:27 +02:00 committed by pespin
parent 1a96ecdeb6
commit 71b430c22f
1 changed files with 4 additions and 5 deletions

View File

@ -238,7 +238,7 @@ class eNodeB(log.Origin, metaclass=ABCMeta):
return self._addr
def ue_max_rate(self, downlink=True):
# The max rate for a single UE per PRB configuration in TM1
# The max rate for a single UE per PRB configuration in TM1 with MCS 28 QAM64
max_phy_rate_tm1_dl = { 6 : 3.5e6,
15 : 11e6,
25 : 18e6,
@ -255,12 +255,11 @@ class eNodeB(log.Origin, metaclass=ABCMeta):
max_rate = max_phy_rate_tm1_dl[self.num_prb()]
else:
max_rate = max_phy_rate_tm1_ul[self.num_prb()]
#TODO: calculate for non-standard prb numbers.
if self._txmode > 2:
if downlink and self._txmode > 2:
max_rate *= 2
# We use 3 control symbols for 6, 15 and 25 PRBs which results in lower max rate
if self.num_prb() < 50:
max_rate *= 0.9
return max_rate
# vim: expandtab tabstop=4 shiftwidth=4