Bug-fix LteUeMac:DoReceiveLteControlMessage erroneous NotifyTxOpportunity
authormmiozzo
Thu, 13 Dec 2012 18:44:34 +0100
changeset 9530 f53df674b24e
parent 9527 10c1b7340221
child 9531 330684693865
Bug-fix LteUeMac:DoReceiveLteControlMessage erroneous NotifyTxOpportunity
src/lte/model/lte-ue-mac.cc
--- a/src/lte/model/lte-ue-mac.cc	Thu Dec 13 15:07:02 2012 +0100
+++ b/src/lte/model/lte-ue-mac.cc	Thu Dec 13 18:44:34 2012 +0100
@@ -580,11 +580,10 @@
                         }
                       else if ((*itBsr).second.txQueueSize > 0)
                         {
-                          bytesForThisLc -= 2; // remove RLC header
                           (*it).second.macSapUser->NotifyTxOpportunity (bytesForThisLc, 0, 0);
-                          if ((*itBsr).second.txQueueSize >= bytesForThisLc)
+                          if ((*itBsr).second.txQueueSize >= bytesForThisLc - 2)
                             {
-                              (*itBsr).second.txQueueSize -= bytesForThisLc;
+                              (*itBsr).second.txQueueSize -= bytesForThisLc - 2;
                             }
                           else
                             {