src/lte/model/lte-ue-mac.cc
changeset 9536 da6e0a3c432b
parent 9535 999521532532
parent 9530 f53df674b24e
child 9571 2840bae9607f
--- a/src/lte/model/lte-ue-mac.cc	Fri Dec 14 09:33:46 2012 +0100
+++ b/src/lte/model/lte-ue-mac.cc	Fri Dec 14 09:48:02 2012 +0100
@@ -588,11 +588,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
                             {