Bug-fix LteAmc::CreateCqiFeedbacks, in GetTbError the size of the TB was expressed in bits instead of bytes
authorMarco Miozzo <marco.miozzo@cttc.es>
Thu, 17 May 2012 15:56:47 +0200
changeset 8781 44f4039ee246
parent 8770 98aaf2701a25
child 8782 406ee7fcd79d
child 8794 a68aeda2d85b
Bug-fix LteAmc::CreateCqiFeedbacks, in GetTbError the size of the TB was expressed in bits instead of bytes
src/lte/model/lte-amc.cc
--- a/src/lte/model/lte-amc.cc	Wed May 16 17:50:13 2012 +0200
+++ b/src/lte/model/lte-amc.cc	Thu May 17 15:56:47 2012 +0200
@@ -348,7 +348,7 @@
             double ber = 0.0;
             while (mcs < 28)
               {
-                ber = LteMiErrorModel::GetTbError (sinr, rbgMap, (uint16_t)GetTbSizeFromMcs (mcs, rbgSize), mcs);
+                ber = LteMiErrorModel::GetTbError (sinr, rbgMap, (uint16_t)GetTbSizeFromMcs (mcs, rbgSize) / 8, mcs);
                 if (ber > 0.1)
                   break;
                 mcs++;