fixed error when setting up the bandwidth value to 6 in LTE module
authorBiljana Bojovic <bbojovic@cttc.es>
Wed, 26 Jun 2013 18:42:17 +0200
changeset 10095 77825e6792b2
parent 10094 6dec20ed6ed1
child 10096 e7367028d8a6
fixed error when setting up the bandwidth value to 6 in LTE module
src/lte/model/lte-ue-phy.cc
--- a/src/lte/model/lte-ue-phy.cc	Wed Jun 19 17:52:18 2013 +0200
+++ b/src/lte/model/lte-ue-phy.cc	Wed Jun 26 18:42:17 2013 +0200
@@ -1030,7 +1030,7 @@
 LteUePhy::DoSetDlBandwidth (uint8_t dlBandwidth)
 {
   NS_LOG_FUNCTION (this << (uint32_t) dlBandwidth);
-  if (m_dlBandwidth != dlBandwidth)
+  if (m_dlBandwidth != dlBandwidth or !m_dlConfigured)
     {
       m_dlBandwidth = dlBandwidth;