diff --git a/src/lte/examples/lena-distributed-ffr.cc b/src/lte/examples/lena-distributed-ffr.cc index 4093b1f9b..de364d5d4 100644 --- a/src/lte/examples/lena-distributed-ffr.cc +++ b/src/lte/examples/lena-distributed-ffr.cc @@ -111,7 +111,7 @@ int main (int argc, char *argv[]) bool generateSpectrumTrace = false; bool generateRem = false; int32_t remRbId = -1; - uint8_t bandwidth = 25; + uint16_t bandwidth = 25; double distance = 1000; Box macroUeBox = Box (-distance * 0.5, distance * 1.5, -distance * 0.5, distance * 1.5, 1.5, 1.5); diff --git a/src/lte/examples/lena-frequency-reuse.cc b/src/lte/examples/lena-frequency-reuse.cc index 3588c1c58..c702a971f 100644 --- a/src/lte/examples/lena-frequency-reuse.cc +++ b/src/lte/examples/lena-frequency-reuse.cc @@ -107,7 +107,7 @@ int main (int argc, char *argv[]) bool generateSpectrumTrace = false; bool generateRem = false; int32_t remRbId = -1; - uint8_t bandwidth = 25; + uint16_t bandwidth = 25; double distance = 1000; Box macroUeBox = Box (-distance * 0.5, distance * 1.5, -distance * 0.5, distance * 1.5, 1.5, 1.5); diff --git a/src/lte/examples/lena-uplink-power-control.cc b/src/lte/examples/lena-uplink-power-control.cc index e13a303ea..ebce38325 100644 --- a/src/lte/examples/lena-uplink-power-control.cc +++ b/src/lte/examples/lena-uplink-power-control.cc @@ -50,7 +50,7 @@ int main (int argc, char *argv[]) Ptr lteHelper = CreateObject (); - uint8_t bandwidth = 25; + uint16_t bandwidth = 25; double d1 = 0; // Create Nodes: eNodeB and UE diff --git a/src/lte/helper/cc-helper.cc b/src/lte/helper/cc-helper.cc index 22a6f630b..1d25596ff 100644 --- a/src/lte/helper/cc-helper.cc +++ b/src/lte/helper/cc-helper.cc @@ -175,7 +175,7 @@ CcHelper::EquallySpacedCcs () uint32_t ulEarfcn = m_ulEarfcn; uint32_t dlEarfcn = m_dlEarfcn; - uint32_t maxBandwidthRb = std::max (m_ulBandwidth, m_dlBandwidth); + uint16_t maxBandwidthRb = std::max (m_ulBandwidth, m_dlBandwidth); // Convert bandwidth from RBs to kHz uint32_t maxBandwidthKhz = LteSpectrumValueHelper::GetChannelBandwidth(maxBandwidthRb) / 1e3; diff --git a/src/lte/helper/lte-helper.cc b/src/lte/helper/lte-helper.cc index ddecd85ff..0dc761e58 100644 --- a/src/lte/helper/lte-helper.cc +++ b/src/lte/helper/lte-helper.cc @@ -711,7 +711,7 @@ LteHelper::InstallSingleEnbDevice (Ptr n) ccPhy->GetUlSpectrumPhy ()->SetLtePhyRxCtrlEndOkCallback (MakeCallback (&LteEnbPhy::ReceiveLteControlMessageList, ccPhy)); ccPhy->GetUlSpectrumPhy ()->SetLtePhyUlHarqFeedbackCallback (MakeCallback (&LteEnbPhy::ReportUlHarqFeedback, ccPhy)); NS_LOG_LOGIC ("set the propagation model frequencies"); - double dlFreq = LteSpectrumValueHelper::GetCarrierFrequency (it->second->m_dlEarfcn); + double dlFreq = LteSpectrumValueHelper::GetCarrierFrequency (it->second->GetDlEarfcn ()); NS_LOG_LOGIC ("DL freq: " << dlFreq); bool dlFreqOk = m_downlinkPathlossModel->SetAttributeFailSafe ("Frequency", DoubleValue (dlFreq)); if (!dlFreqOk) @@ -719,7 +719,7 @@ LteHelper::InstallSingleEnbDevice (Ptr n) NS_LOG_WARN ("DL propagation model does not have a Frequency attribute"); } - double ulFreq = LteSpectrumValueHelper::GetCarrierFrequency (it->second->m_ulEarfcn); + double ulFreq = LteSpectrumValueHelper::GetCarrierFrequency (it->second->GetUlEarfcn ()); NS_LOG_LOGIC ("UL freq: " << ulFreq); bool ulFreqOk = m_uplinkPathlossModel->SetAttributeFailSafe ("Frequency", DoubleValue (ulFreq)); @@ -1295,7 +1295,7 @@ LteHelper::DoDeActivateDedicatedEpsBearer (Ptr ueDevice, Ptr::SetCellId (uint16_t cellId) template void -MemberLteEnbCphySapProvider::SetBandwidth (uint8_t ulBandwidth, uint8_t dlBandwidth) +MemberLteEnbCphySapProvider::SetBandwidth (uint16_t ulBandwidth, uint16_t dlBandwidth) { m_owner->DoSetBandwidth (ulBandwidth, dlBandwidth); } diff --git a/src/lte/model/lte-enb-mac.cc b/src/lte/model/lte-enb-mac.cc index 08b328d1e..59f3367a7 100644 --- a/src/lte/model/lte-enb-mac.cc +++ b/src/lte/model/lte-enb-mac.cc @@ -67,7 +67,7 @@ public: EnbMacMemberLteEnbCmacSapProvider (LteEnbMac* mac); // inherited from LteEnbCmacSapProvider - virtual void ConfigureMac (uint8_t ulBandwidth, uint8_t dlBandwidth); + virtual void ConfigureMac (uint16_t ulBandwidth, uint16_t dlBandwidth); virtual void AddUe (uint16_t rnti); virtual void RemoveUe (uint16_t rnti); virtual void AddLc (LcInfo lcinfo, LteMacSapUser* msu); @@ -89,7 +89,7 @@ EnbMacMemberLteEnbCmacSapProvider::EnbMacMemberLteEnbCmacSapProvider (LteEnbMac* } void -EnbMacMemberLteEnbCmacSapProvider::ConfigureMac (uint8_t ulBandwidth, uint8_t dlBandwidth) +EnbMacMemberLteEnbCmacSapProvider::ConfigureMac (uint16_t ulBandwidth, uint16_t dlBandwidth) { m_mac->DoConfigureMac (ulBandwidth, dlBandwidth); } @@ -789,9 +789,9 @@ LteEnbMac::DoReceivePhyPdu (Ptr p) // //////////////////////////////////////////// void -LteEnbMac::DoConfigureMac (uint8_t ulBandwidth, uint8_t dlBandwidth) +LteEnbMac::DoConfigureMac (uint16_t ulBandwidth, uint16_t dlBandwidth) { - NS_LOG_FUNCTION (this << " ulBandwidth=" << (uint16_t) ulBandwidth << " dlBandwidth=" << (uint16_t) dlBandwidth); + NS_LOG_FUNCTION (this << " ulBandwidth=" << ulBandwidth << " dlBandwidth=" << dlBandwidth); FfMacCschedSapProvider::CschedCellConfigReqParameters params; // Configure the subset of parameters used by FfMacScheduler params.m_ulBandwidth = ulBandwidth; diff --git a/src/lte/model/lte-enb-mac.h b/src/lte/model/lte-enb-mac.h index 94bd61237..fe0a917ce 100644 --- a/src/lte/model/lte-enb-mac.h +++ b/src/lte/model/lte-enb-mac.h @@ -217,7 +217,7 @@ private: * \param ulBandwidth the UL bandwidth * \param dlBandwidth the DL bandwidth */ - void DoConfigureMac (uint8_t ulBandwidth, uint8_t dlBandwidth); + void DoConfigureMac (uint16_t ulBandwidth, uint16_t dlBandwidth); /** * \brief Add UE function * \param rnti the RNTI diff --git a/src/lte/model/lte-enb-net-device.cc b/src/lte/model/lte-enb-net-device.cc index 0dd7a7556..e4c55d193 100644 --- a/src/lte/model/lte-enb-net-device.cc +++ b/src/lte/model/lte-enb-net-device.cc @@ -239,16 +239,16 @@ LteEnbNetDevice::HasCellId (uint16_t cellId) const return false; } -uint8_t +uint16_t LteEnbNetDevice::GetUlBandwidth () const { return m_ulBandwidth; } void -LteEnbNetDevice::SetUlBandwidth (uint8_t bw) +LteEnbNetDevice::SetUlBandwidth (uint16_t bw) { - NS_LOG_FUNCTION (this << uint16_t (bw)); + NS_LOG_FUNCTION (this << bw); switch (bw) { case 6: @@ -261,19 +261,19 @@ LteEnbNetDevice::SetUlBandwidth (uint8_t bw) break; default: - NS_FATAL_ERROR ("invalid bandwidth value " << (uint16_t) bw); + NS_FATAL_ERROR ("invalid bandwidth value " << bw); break; } } -uint8_t +uint16_t LteEnbNetDevice::GetDlBandwidth () const { return m_dlBandwidth; } void -LteEnbNetDevice::SetDlBandwidth (uint8_t bw) +LteEnbNetDevice::SetDlBandwidth (uint16_t bw) { NS_LOG_FUNCTION (this << uint16_t (bw)); switch (bw) @@ -288,7 +288,7 @@ LteEnbNetDevice::SetDlBandwidth (uint8_t bw) break; default: - NS_FATAL_ERROR ("invalid bandwidth value " << (uint16_t) bw); + NS_FATAL_ERROR ("invalid bandwidth value " << bw); break; } } diff --git a/src/lte/model/lte-enb-net-device.h b/src/lte/model/lte-enb-net-device.h index 8d0727ed8..a6ee99336 100644 --- a/src/lte/model/lte-enb-net-device.h +++ b/src/lte/model/lte-enb-net-device.h @@ -116,22 +116,22 @@ public: /** * \return the uplink bandwidth in RBs */ - uint8_t GetUlBandwidth () const; + uint16_t GetUlBandwidth () const; /** * \param bw the uplink bandwidth in RBs */ - void SetUlBandwidth (uint8_t bw); + void SetUlBandwidth (uint16_t bw); /** * \return the downlink bandwidth in RBs */ - uint8_t GetDlBandwidth () const; + uint16_t GetDlBandwidth () const; /** * \param bw the downlink bandwidth in RBs */ - void SetDlBandwidth (uint8_t bw); + void SetDlBandwidth (uint16_t bw); /** * \return the downlink carrier frequency (EARFCN) @@ -244,8 +244,8 @@ private: uint16_t m_cellId; /**< Cell Identifier. Part of the CGI, see TS 29.274, section 8.21.1 */ - uint8_t m_dlBandwidth; /** p) } void -EnbMemberLteEnbPhySapProvider::SetBandwidth (uint8_t ulBandwidth, uint8_t dlBandwidth) +EnbMemberLteEnbPhySapProvider::SetBandwidth (uint16_t ulBandwidth, uint16_t dlBandwidth) { m_phy->DoSetBandwidth (ulBandwidth, dlBandwidth); } @@ -894,7 +894,7 @@ LteEnbPhy::CreatePuschCqiReport (const SpectrumValue& sinr) void -LteEnbPhy::DoSetBandwidth (uint8_t ulBandwidth, uint8_t dlBandwidth) +LteEnbPhy::DoSetBandwidth (uint16_t ulBandwidth, uint16_t dlBandwidth) { NS_LOG_FUNCTION (this << (uint32_t) ulBandwidth << (uint32_t) dlBandwidth); m_ulBandwidth = ulBandwidth; diff --git a/src/lte/model/lte-enb-phy.h b/src/lte/model/lte-enb-phy.h index 9bfebb5f8..e1fe40369 100644 --- a/src/lte/model/lte-enb-phy.h +++ b/src/lte/model/lte-enb-phy.h @@ -329,7 +329,7 @@ private: * \param ulBandwidth UL bandwidth * \param dlBandwidth DL bandwidth */ - void DoSetBandwidth (uint8_t ulBandwidth, uint8_t dlBandwidth); + void DoSetBandwidth (uint16_t ulBandwidth, uint16_t dlBandwidth); /** * Set EARFCN * diff --git a/src/lte/model/lte-enb-rrc.cc b/src/lte/model/lte-enb-rrc.cc index 21b58b300..23ed0de3f 100644 --- a/src/lte/model/lte-enb-rrc.cc +++ b/src/lte/model/lte-enb-rrc.cc @@ -2175,11 +2175,11 @@ LteEnbRrc::ConfigureCell (std::map> cc { auto it = ccPhyConf.begin (); NS_ASSERT (it != ccPhyConf.end ()); - uint8_t ulBandwidth = it->second->GetUlBandwidth (); - uint8_t dlBandwidth = it->second->GetDlBandwidth (); + uint16_t ulBandwidth = it->second->GetUlBandwidth (); + uint16_t dlBandwidth = it->second->GetDlBandwidth (); uint32_t ulEarfcn = it->second->GetUlEarfcn (); uint32_t dlEarfcn = it->second->GetDlEarfcn (); - NS_LOG_FUNCTION (this << (uint16_t) ulBandwidth << (uint16_t) dlBandwidth + NS_LOG_FUNCTION (this << ulBandwidth << dlBandwidth << ulEarfcn << dlEarfcn); NS_ASSERT (!m_configured); diff --git a/src/lte/model/lte-ffr-algorithm.cc b/src/lte/model/lte-ffr-algorithm.cc index 67511a0be..f8bb5bf81 100644 --- a/src/lte/model/lte-ffr-algorithm.cc +++ b/src/lte/model/lte-ffr-algorithm.cc @@ -79,7 +79,7 @@ LteFfrAlgorithm::DoDispose () NS_LOG_FUNCTION (this); } -uint8_t +uint16_t LteFfrAlgorithm::GetUlBandwidth () const { NS_LOG_FUNCTION (this); @@ -87,9 +87,9 @@ LteFfrAlgorithm::GetUlBandwidth () const } void -LteFfrAlgorithm::SetUlBandwidth (uint8_t bw) +LteFfrAlgorithm::SetUlBandwidth (uint16_t bw) { - NS_LOG_FUNCTION (this << uint16_t (bw)); + NS_LOG_FUNCTION (this << bw); switch (bw) { case 6: @@ -102,12 +102,12 @@ LteFfrAlgorithm::SetUlBandwidth (uint8_t bw) break; default: - NS_FATAL_ERROR ("invalid bandwidth value " << (uint16_t) bw); + NS_FATAL_ERROR ("invalid bandwidth value " << bw); break; } } -uint8_t +uint16_t LteFfrAlgorithm::GetDlBandwidth () const { NS_LOG_FUNCTION (this); @@ -115,9 +115,9 @@ LteFfrAlgorithm::GetDlBandwidth () const } void -LteFfrAlgorithm::SetDlBandwidth (uint8_t bw) +LteFfrAlgorithm::SetDlBandwidth (uint16_t bw) { - NS_LOG_FUNCTION (this << uint16_t (bw)); + NS_LOG_FUNCTION (this << bw); switch (bw) { case 6: @@ -130,7 +130,7 @@ LteFfrAlgorithm::SetDlBandwidth (uint8_t bw) break; default: - NS_FATAL_ERROR ("invalid bandwidth value " << (uint16_t) bw); + NS_FATAL_ERROR ("invalid bandwidth value " << bw); break; } } @@ -172,7 +172,7 @@ LteFfrAlgorithm::DoSetCellId (uint16_t cellId ) } void -LteFfrAlgorithm::DoSetBandwidth (uint8_t ulBandwidth, uint8_t dlBandwidth) +LteFfrAlgorithm::DoSetBandwidth (uint16_t ulBandwidth, uint16_t dlBandwidth) { NS_LOG_FUNCTION (this); SetDlBandwidth (dlBandwidth); diff --git a/src/lte/model/lte-ffr-algorithm.h b/src/lte/model/lte-ffr-algorithm.h index deb20c338..7c3bbdd9e 100644 --- a/src/lte/model/lte-ffr-algorithm.h +++ b/src/lte/model/lte-ffr-algorithm.h @@ -99,22 +99,22 @@ public: /** * \return the uplink bandwidth in RBs */ - uint8_t GetUlBandwidth () const; + uint16_t GetUlBandwidth () const; /** * \param bw the uplink bandwidth in RBs */ - void SetUlBandwidth (uint8_t bw); + void SetUlBandwidth (uint16_t bw); /** * \return the downlink bandwidth in RBs */ - uint8_t GetDlBandwidth () const; + uint16_t GetDlBandwidth () const; /** * \param bw the downlink bandwidth in RBs */ - void SetDlBandwidth (uint8_t bw); + void SetDlBandwidth (uint16_t bw); /** * \param cellTypeId for automatic FR configuration @@ -202,7 +202,7 @@ protected: * \brief DoGetMinContinuousUlBandwidth in number of RB * \return number of RB in min continuous UL Bandwidth */ - virtual uint8_t DoGetMinContinuousUlBandwidth () = 0; + virtual uint16_t DoGetMinContinuousUlBandwidth () = 0; // FFR SAP RRC PROVIDER IMPLEMENTATION @@ -217,7 +217,7 @@ protected: * \param ulBandwidth UL bandwidth in number of RB * \param dlBandwidth DL bandwidth in number of RB */ - virtual void DoSetBandwidth (uint8_t ulBandwidth, uint8_t dlBandwidth); + virtual void DoSetBandwidth (uint16_t ulBandwidth, uint16_t dlBandwidth); /** * \brief Implementation of LteFfrRrcSapProvider::ReportUeMeas. diff --git a/src/lte/model/lte-ffr-distributed-algorithm.cc b/src/lte/model/lte-ffr-distributed-algorithm.cc index a942367a5..9348ca92b 100644 --- a/src/lte/model/lte-ffr-distributed-algorithm.cc +++ b/src/lte/model/lte-ffr-distributed-algorithm.cc @@ -365,7 +365,7 @@ LteFfrDistributedAlgorithm::DoGetTpc (uint16_t rnti) return 1; } -uint8_t +uint16_t LteFfrDistributedAlgorithm::DoGetMinContinuousUlBandwidth () { NS_LOG_FUNCTION (this); diff --git a/src/lte/model/lte-ffr-distributed-algorithm.h b/src/lte/model/lte-ffr-distributed-algorithm.h index 4b9e4288b..bd9c3e9a7 100644 --- a/src/lte/model/lte-ffr-distributed-algorithm.h +++ b/src/lte/model/lte-ffr-distributed-algorithm.h @@ -72,7 +72,7 @@ protected: virtual void DoReportUlCqiInfo (const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters& params); virtual void DoReportUlCqiInfo ( std::map > ulCqiMap ); virtual uint8_t DoGetTpc (uint16_t rnti); - virtual uint8_t DoGetMinContinuousUlBandwidth (); + virtual uint16_t DoGetMinContinuousUlBandwidth (); // FFR SAP RRC PROVIDER IMPLEMENTATION virtual void DoReportUeMeas (uint16_t rnti, LteRrcSap::MeasResults measResults); diff --git a/src/lte/model/lte-ffr-enhanced-algorithm.cc b/src/lte/model/lte-ffr-enhanced-algorithm.cc index b3f5b7a6e..682625d2c 100644 --- a/src/lte/model/lte-ffr-enhanced-algorithm.cc +++ b/src/lte/model/lte-ffr-enhanced-algorithm.cc @@ -831,7 +831,7 @@ LteFfrEnhancedAlgorithm::DoGetTpc (uint16_t rnti) return 1; } -uint8_t +uint16_t LteFfrEnhancedAlgorithm::DoGetMinContinuousUlBandwidth () { NS_LOG_FUNCTION (this); diff --git a/src/lte/model/lte-ffr-enhanced-algorithm.h b/src/lte/model/lte-ffr-enhanced-algorithm.h index a63ea69ec..800f46262 100644 --- a/src/lte/model/lte-ffr-enhanced-algorithm.h +++ b/src/lte/model/lte-ffr-enhanced-algorithm.h @@ -80,7 +80,7 @@ protected: virtual void DoReportUlCqiInfo (const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters& params); virtual void DoReportUlCqiInfo ( std::map > ulCqiMap ); virtual uint8_t DoGetTpc (uint16_t rnti); - virtual uint8_t DoGetMinContinuousUlBandwidth (); + virtual uint16_t DoGetMinContinuousUlBandwidth (); // FFR SAP RRC PROVIDER IMPLEMENTATION virtual void DoReportUeMeas (uint16_t rnti, LteRrcSap::MeasResults measResults); diff --git a/src/lte/model/lte-ffr-sap.h b/src/lte/model/lte-ffr-sap.h index 36257b933..31c326c7b 100644 --- a/src/lte/model/lte-ffr-sap.h +++ b/src/lte/model/lte-ffr-sap.h @@ -124,7 +124,7 @@ public: * \brief Get the minimum continuous Ul bandwidth * \returns the minimum continuous UL bandwidth */ - virtual uint8_t GetMinContinuousUlBandwidth () = 0; + virtual uint16_t GetMinContinuousUlBandwidth () = 0; }; // end of class LteFfrSapProvider @@ -168,7 +168,7 @@ public: virtual void ReportUlCqiInfo (const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters& params); virtual void ReportUlCqiInfo ( std::map > ulCqiMap ); virtual uint8_t GetTpc (uint16_t rnti); - virtual uint8_t GetMinContinuousUlBandwidth (); + virtual uint16_t GetMinContinuousUlBandwidth (); private: MemberLteFfrSapProvider (); C* m_owner; ///< the owner class @@ -240,7 +240,7 @@ MemberLteFfrSapProvider::GetTpc ( uint16_t rnti ) } template -uint8_t +uint16_t MemberLteFfrSapProvider::GetMinContinuousUlBandwidth () { return m_owner->DoGetMinContinuousUlBandwidth (); diff --git a/src/lte/model/lte-ffr-soft-algorithm.cc b/src/lte/model/lte-ffr-soft-algorithm.cc index da4dfbd15..0f097923a 100644 --- a/src/lte/model/lte-ffr-soft-algorithm.cc +++ b/src/lte/model/lte-ffr-soft-algorithm.cc @@ -569,7 +569,7 @@ LteFfrSoftAlgorithm::DoGetTpc (uint16_t rnti) return 1; } -uint8_t +uint16_t LteFfrSoftAlgorithm::DoGetMinContinuousUlBandwidth () { NS_LOG_FUNCTION (this); diff --git a/src/lte/model/lte-ffr-soft-algorithm.h b/src/lte/model/lte-ffr-soft-algorithm.h index 4ba4bd466..ed9c14abb 100644 --- a/src/lte/model/lte-ffr-soft-algorithm.h +++ b/src/lte/model/lte-ffr-soft-algorithm.h @@ -78,7 +78,7 @@ protected: virtual void DoReportUlCqiInfo (const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters& params); virtual void DoReportUlCqiInfo ( std::map > ulCqiMap ); virtual uint8_t DoGetTpc (uint16_t rnti); - virtual uint8_t DoGetMinContinuousUlBandwidth (); + virtual uint16_t DoGetMinContinuousUlBandwidth (); // FFR SAP RRC PROVIDER IMPLEMENTATION virtual void DoReportUeMeas (uint16_t rnti, LteRrcSap::MeasResults measResults); diff --git a/src/lte/model/lte-fr-hard-algorithm.cc b/src/lte/model/lte-fr-hard-algorithm.cc index 844f423b7..e77087c58 100644 --- a/src/lte/model/lte-fr-hard-algorithm.cc +++ b/src/lte/model/lte-fr-hard-algorithm.cc @@ -359,7 +359,7 @@ LteFrHardAlgorithm::DoGetTpc (uint16_t rnti) return 1; // 1 is mapped to 0 for Accumulated mode, and to -1 in Absolute mode TS36.213 Table 5.1.1.1-2 } -uint8_t +uint16_t LteFrHardAlgorithm::DoGetMinContinuousUlBandwidth () { NS_LOG_FUNCTION (this); diff --git a/src/lte/model/lte-fr-hard-algorithm.h b/src/lte/model/lte-fr-hard-algorithm.h index deb4b5fff..6618b084d 100644 --- a/src/lte/model/lte-fr-hard-algorithm.h +++ b/src/lte/model/lte-fr-hard-algorithm.h @@ -77,7 +77,7 @@ protected: virtual void DoReportUlCqiInfo (const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters& params); virtual void DoReportUlCqiInfo ( std::map > ulCqiMap ); virtual uint8_t DoGetTpc (uint16_t rnti); - virtual uint8_t DoGetMinContinuousUlBandwidth (); + virtual uint16_t DoGetMinContinuousUlBandwidth (); // FFR SAP RRC PROVIDER IMPLEMENTATION virtual void DoReportUeMeas (uint16_t rnti, LteRrcSap::MeasResults measResults); diff --git a/src/lte/model/lte-fr-no-op-algorithm.cc b/src/lte/model/lte-fr-no-op-algorithm.cc index 08433ac2b..c471d90ee 100644 --- a/src/lte/model/lte-fr-no-op-algorithm.cc +++ b/src/lte/model/lte-fr-no-op-algorithm.cc @@ -170,7 +170,7 @@ LteFrNoOpAlgorithm::DoGetTpc (uint16_t rnti) return 1; // 1 is mapped to 0 for Accumulated mode, and to -1 in Absolute mode TS36.213 Table 5.1.1.1-2 } -uint8_t +uint16_t LteFrNoOpAlgorithm::DoGetMinContinuousUlBandwidth () { NS_LOG_FUNCTION (this); diff --git a/src/lte/model/lte-fr-no-op-algorithm.h b/src/lte/model/lte-fr-no-op-algorithm.h index a28859880..4af30c592 100644 --- a/src/lte/model/lte-fr-no-op-algorithm.h +++ b/src/lte/model/lte-fr-no-op-algorithm.h @@ -83,7 +83,7 @@ protected: virtual void DoReportUlCqiInfo (const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters& params); virtual void DoReportUlCqiInfo ( std::map > ulCqiMap ); virtual uint8_t DoGetTpc (uint16_t rnti); - virtual uint8_t DoGetMinContinuousUlBandwidth (); + virtual uint16_t DoGetMinContinuousUlBandwidth (); // FFR SAP RRC PROVIDER IMPLEMENTATION virtual void DoReportUeMeas (uint16_t rnti, LteRrcSap::MeasResults measResults); diff --git a/src/lte/model/lte-fr-soft-algorithm.cc b/src/lte/model/lte-fr-soft-algorithm.cc index 647b092a6..4a63e9de1 100644 --- a/src/lte/model/lte-fr-soft-algorithm.cc +++ b/src/lte/model/lte-fr-soft-algorithm.cc @@ -475,7 +475,7 @@ LteFrSoftAlgorithm::DoGetTpc (uint16_t rnti) return 1; } -uint8_t +uint16_t LteFrSoftAlgorithm::DoGetMinContinuousUlBandwidth () { NS_LOG_FUNCTION (this); diff --git a/src/lte/model/lte-fr-soft-algorithm.h b/src/lte/model/lte-fr-soft-algorithm.h index f485a7d50..958bac1a5 100644 --- a/src/lte/model/lte-fr-soft-algorithm.h +++ b/src/lte/model/lte-fr-soft-algorithm.h @@ -78,7 +78,7 @@ protected: virtual void DoReportUlCqiInfo (const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters& params); virtual void DoReportUlCqiInfo ( std::map > ulCqiMap ); virtual uint8_t DoGetTpc (uint16_t rnti); - virtual uint8_t DoGetMinContinuousUlBandwidth (); + virtual uint16_t DoGetMinContinuousUlBandwidth (); // FFR SAP RRC PROVIDER IMPLEMENTATION virtual void DoReportUeMeas (uint16_t rnti, LteRrcSap::MeasResults measResults); diff --git a/src/lte/model/lte-fr-strict-algorithm.cc b/src/lte/model/lte-fr-strict-algorithm.cc index ef742e86c..19ca0fc8e 100644 --- a/src/lte/model/lte-fr-strict-algorithm.cc +++ b/src/lte/model/lte-fr-strict-algorithm.cc @@ -500,7 +500,7 @@ LteFrStrictAlgorithm::DoGetTpc (uint16_t rnti) return 1; } -uint8_t +uint16_t LteFrStrictAlgorithm::DoGetMinContinuousUlBandwidth () { NS_LOG_FUNCTION (this); diff --git a/src/lte/model/lte-fr-strict-algorithm.h b/src/lte/model/lte-fr-strict-algorithm.h index a9879c075..e09e723fe 100644 --- a/src/lte/model/lte-fr-strict-algorithm.h +++ b/src/lte/model/lte-fr-strict-algorithm.h @@ -78,7 +78,7 @@ protected: virtual void DoReportUlCqiInfo (const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters& params); virtual void DoReportUlCqiInfo ( std::map > ulCqiMap ); virtual uint8_t DoGetTpc (uint16_t rnti); - virtual uint8_t DoGetMinContinuousUlBandwidth (); + virtual uint16_t DoGetMinContinuousUlBandwidth (); // FFR SAP RRC PROVIDER IMPLEMENTATION virtual void DoReportUeMeas (uint16_t rnti, LteRrcSap::MeasResults measResults); diff --git a/src/lte/model/lte-phy.h b/src/lte/model/lte-phy.h index 910fb99d1..deb33ee51 100644 --- a/src/lte/model/lte-phy.h +++ b/src/lte/model/lte-phy.h @@ -266,12 +266,12 @@ protected: * The UL bandwidth in number of PRBs. * Specified by the upper layer through CPHY SAP. */ - uint8_t m_ulBandwidth; + uint16_t m_ulBandwidth; /** * The DL bandwidth in number of PRBs. * Specified by the upper layer through CPHY SAP. */ - uint8_t m_dlBandwidth; + uint16_t m_dlBandwidth; /// The RB group size according to the bandwidth. uint8_t m_rbgSize; /** diff --git a/src/lte/model/lte-rrc-header.cc b/src/lte/model/lte-rrc-header.cc index c01734fd9..bf4487cb6 100644 --- a/src/lte/model/lte-rrc-header.cc +++ b/src/lte/model/lte-rrc-header.cc @@ -74,7 +74,7 @@ RrcAsn1Header::GetMessageType () } int -RrcAsn1Header::BandwidthToEnum (uint8_t bandwidth) const +RrcAsn1Header::BandwidthToEnum (uint16_t bandwidth) const { int n; switch (bandwidth) @@ -86,15 +86,15 @@ RrcAsn1Header::BandwidthToEnum (uint8_t bandwidth) const case 75: n = 4; break; case 100: n = 5; break; default: - NS_FATAL_ERROR ("Wrong bandwidth: " << (uint16_t) bandwidth); + NS_FATAL_ERROR ("Wrong bandwidth: " << bandwidth); } return n; } -uint8_t +uint16_t RrcAsn1Header::EnumToBandwidth (int n) const { - uint8_t bw; + uint16_t bw; switch (n) { case 0: bw = 6; break; diff --git a/src/lte/model/lte-rrc-header.h b/src/lte/model/lte-rrc-header.h index 0cb323459..35cbd44f9 100644 --- a/src/lte/model/lte-rrc-header.h +++ b/src/lte/model/lte-rrc-header.h @@ -72,14 +72,14 @@ protected: * \param bandwidth Bandwidth in RBs: 6, 15, 25, 50, 75, 100 * \returns ENUMERATED value: 0, 1, 2, 3, 4, 5 */ - int BandwidthToEnum (uint8_t bandwidth) const; + int BandwidthToEnum (uint16_t bandwidth) const; /** * Convert from ENUMERATED value to bandwidth (in RBs) * * \param n ENUMERATED value: 0, 1, 2, 3, 4, 5 * \returns bandwidth Bandwidth in RBs: 6, 15, 25, 50, 75, 100 */ - uint8_t EnumToBandwidth (int n) const; + uint16_t EnumToBandwidth (int n) const; // Serialization functions diff --git a/src/lte/model/lte-rrc-sap.h b/src/lte/model/lte-rrc-sap.h index cc2404d94..0d3ace40e 100644 --- a/src/lte/model/lte-rrc-sap.h +++ b/src/lte/model/lte-rrc-sap.h @@ -88,7 +88,7 @@ public: struct FreqInfo { uint32_t ulCarrierFreq; ///< UL carrier frequency - uint8_t ulBandwidth; ///< UL bandwidth + uint16_t ulBandwidth; ///< UL bandwidth }; /// RlcConfig structure @@ -121,7 +121,7 @@ public: { SETUP, RESET } type; ///< action type - uint8_t srsBandwidthConfig; ///< SRS bandwidth config + uint16_t srsBandwidthConfig; ///< SRS bandwidth config uint8_t srsSubframeConfig; ///< SRS subframe config }; @@ -133,7 +133,7 @@ public: { SETUP, RESET } type; ///< action type - uint8_t srsBandwidth; ///< SRS bandwidth + uint16_t srsBandwidth; ///< SRS bandwidth uint16_t srsConfigIndex; ///< SRS config index }; @@ -325,7 +325,7 @@ public: struct MeasObjectEutra { uint32_t carrierFreq; ///< carrier frequency - uint8_t allowedMeasBandwidth; ///< allowed measure bandwidth + uint16_t allowedMeasBandwidth; ///< allowed measure bandwidth bool presenceAntennaPort1; ///< antenna port 1 present? uint8_t neighCellConfig; ///< neighbor cell config int8_t offsetFreq; ///< offset frequency @@ -543,8 +543,8 @@ public: /// CarrierBandwidthEutra structure struct CarrierBandwidthEutra { - uint8_t dlBandwidth; ///< DL bandwidth - uint8_t ulBandwidth; ///< UL bandwidth + uint16_t dlBandwidth; ///< DL bandwidth + uint16_t ulBandwidth; ///< UL bandwidth }; /// RachConfigDedicated structure @@ -586,8 +586,8 @@ public: /// MasterInformationBlock structure struct MasterInformationBlock { - uint8_t dlBandwidth; ///< DL bandwidth - uint8_t systemFrameNumber; ///< system frame number + uint16_t dlBandwidth; ///< DL bandwidth + uint16_t systemFrameNumber; ///< system frame number }; /// SystemInformationBlockType1 structure diff --git a/src/lte/model/lte-spectrum-value-helper.cc b/src/lte/model/lte-spectrum-value-helper.cc index 3bd30ef10..1f49b9167 100644 --- a/src/lte/model/lte-spectrum-value-helper.cc +++ b/src/lte/model/lte-spectrum-value-helper.cc @@ -173,9 +173,9 @@ LteSpectrumValueHelper::GetUplinkCarrierFrequency (uint32_t nUl) } double -LteSpectrumValueHelper::GetChannelBandwidth (uint8_t transmissionBandwidth) +LteSpectrumValueHelper::GetChannelBandwidth (uint16_t transmissionBandwidth) { - NS_LOG_FUNCTION ((uint16_t) transmissionBandwidth); + NS_LOG_FUNCTION (transmissionBandwidth); switch (transmissionBandwidth) { case 6: @@ -191,7 +191,7 @@ LteSpectrumValueHelper::GetChannelBandwidth (uint8_t transmissionBandwidth) case 100: return 20.0e6; default: - NS_FATAL_ERROR ("invalid bandwidth value " << (uint16_t) transmissionBandwidth); + NS_FATAL_ERROR ("invalid bandwidth value " << transmissionBandwidth); } } @@ -209,7 +209,7 @@ struct LteSpectrumModelId */ LteSpectrumModelId (uint32_t f, uint8_t b); uint32_t earfcn; ///< EARFCN - uint8_t bandwidth; ///< bandwidth + uint16_t bandwidth; ///< bandwidth }; LteSpectrumModelId::LteSpectrumModelId (uint32_t f, uint8_t b) @@ -236,9 +236,9 @@ static std::map > g_lteSpectrumModelMap; Ptr -LteSpectrumValueHelper::GetSpectrumModel (uint32_t earfcn, uint8_t txBandwidthConfiguration) +LteSpectrumValueHelper::GetSpectrumModel (uint32_t earfcn, uint16_t txBandwidthConfiguration) { - NS_LOG_FUNCTION (earfcn << (uint16_t) txBandwidthConfiguration); + NS_LOG_FUNCTION (earfcn << txBandwidthConfiguration); Ptr ret; LteSpectrumModelId key (earfcn, txBandwidthConfiguration); std::map >::iterator it = g_lteSpectrumModelMap.find (key); @@ -271,9 +271,9 @@ LteSpectrumValueHelper::GetSpectrumModel (uint32_t earfcn, uint8_t txBandwidthCo } Ptr -LteSpectrumValueHelper::CreateTxPowerSpectralDensity (uint32_t earfcn, uint8_t txBandwidthConfiguration, double powerTx, std::vector activeRbs) +LteSpectrumValueHelper::CreateTxPowerSpectralDensity (uint32_t earfcn, uint16_t txBandwidthConfiguration, double powerTx, std::vector activeRbs) { - NS_LOG_FUNCTION (earfcn << (uint16_t) txBandwidthConfiguration << powerTx << activeRbs); + NS_LOG_FUNCTION (earfcn << txBandwidthConfiguration << powerTx << activeRbs); Ptr model = GetSpectrumModel (earfcn, txBandwidthConfiguration); Ptr txPsd = Create (model); @@ -295,9 +295,9 @@ LteSpectrumValueHelper::CreateTxPowerSpectralDensity (uint32_t earfcn, uint8_t t } Ptr -LteSpectrumValueHelper::CreateTxPowerSpectralDensity (uint32_t earfcn, uint8_t txBandwidthConfiguration, double powerTx, std::map powerTxMap, std::vector activeRbs) +LteSpectrumValueHelper::CreateTxPowerSpectralDensity (uint32_t earfcn, uint16_t txBandwidthConfiguration, double powerTx, std::map powerTxMap, std::vector activeRbs) { - NS_LOG_FUNCTION (earfcn << (uint16_t) txBandwidthConfiguration << activeRbs); + NS_LOG_FUNCTION (earfcn << txBandwidthConfiguration << activeRbs); Ptr model = GetSpectrumModel (earfcn, txBandwidthConfiguration); Ptr txPsd = Create (model); @@ -333,9 +333,9 @@ LteSpectrumValueHelper::CreateTxPowerSpectralDensity (uint32_t earfcn, uint8_t t } Ptr -LteSpectrumValueHelper::CreateUlTxPowerSpectralDensity (uint16_t earfcn, uint8_t txBandwidthConfiguration, double powerTx, std::vector activeRbs) +LteSpectrumValueHelper::CreateUlTxPowerSpectralDensity (uint16_t earfcn, uint16_t txBandwidthConfiguration, double powerTx, std::vector activeRbs) { - NS_LOG_FUNCTION (earfcn << (uint16_t) txBandwidthConfiguration << powerTx << activeRbs); + NS_LOG_FUNCTION (earfcn << txBandwidthConfiguration << powerTx << activeRbs); Ptr model = GetSpectrumModel (earfcn, txBandwidthConfiguration); Ptr txPsd = Create (model); @@ -357,9 +357,9 @@ LteSpectrumValueHelper::CreateUlTxPowerSpectralDensity (uint16_t earfcn, uint8_t } Ptr -LteSpectrumValueHelper::CreateNoisePowerSpectralDensity (uint32_t earfcn, uint8_t txBandwidthConfiguration, double noiseFigure) +LteSpectrumValueHelper::CreateNoisePowerSpectralDensity (uint32_t earfcn, uint16_t txBandwidthConfiguration, double noiseFigure) { - NS_LOG_FUNCTION (earfcn << (uint16_t) txBandwidthConfiguration << noiseFigure); + NS_LOG_FUNCTION (earfcn << txBandwidthConfiguration << noiseFigure); Ptr model = GetSpectrumModel (earfcn, txBandwidthConfiguration); return CreateNoisePowerSpectralDensity (noiseFigure, model); } diff --git a/src/lte/model/lte-spectrum-value-helper.h b/src/lte/model/lte-spectrum-value-helper.h index 95672bfa7..3b39ee421 100644 --- a/src/lte/model/lte-spectrum-value-helper.h +++ b/src/lte/model/lte-spectrum-value-helper.h @@ -95,7 +95,7 @@ public: * * \return the nominal channel bandwidth in Hz as per 3GPP TS 36.101 */ - static double GetChannelBandwidth (uint8_t txBandwidthConf); + static double GetChannelBandwidth (uint16_t txBandwidthConf); /** * @@ -109,7 +109,7 @@ public: * configuration. If such SpectrumModel does not exist, it is * created. */ - static Ptr GetSpectrumModel (uint32_t earfcn, uint8_t bandwidth); + static Ptr GetSpectrumModel (uint32_t earfcn, uint16_t bandwidth); /** @@ -126,7 +126,7 @@ public: * \return a pointer to a newly allocated SpectrumValue representing the TX Power Spectral Density in W/Hz for each Resource Block */ static Ptr CreateTxPowerSpectralDensity (uint32_t earfcn, - uint8_t bandwidth, + uint16_t bandwidth, double powerTx, std::vector activeRbs); @@ -147,7 +147,7 @@ public: * \return a pointer to a newly allocated SpectrumValue representing the TX Power Spectral Density in W/Hz for each Resource Block */ static Ptr CreateTxPowerSpectralDensity (uint32_t earfcn, - uint8_t bandwidth, + uint16_t bandwidth, double powerTx, std::map powerTxMap, std::vector activeRbs); @@ -167,7 +167,7 @@ public: * \return a pointer to a newly allocated SpectrumValue representing the TX Power Spectral Density in W/Hz for each Resource Block */ static Ptr CreateUlTxPowerSpectralDensity (uint16_t earfcn, - uint8_t bandwidth, + uint16_t bandwidth, double powerTx, std::vector activeRbs); @@ -182,7 +182,7 @@ public: * * \return a pointer to a newly allocated SpectrumValue representing the noise Power Spectral Density in W/Hz for each Resource Block */ - static Ptr CreateNoisePowerSpectralDensity (uint32_t earfcn, uint8_t bandwidth, double noiseFigure); + static Ptr CreateNoisePowerSpectralDensity (uint32_t earfcn, uint16_t bandwidth, double noiseFigure); /** * create a SpectrumValue that models the power spectral density of AWGN diff --git a/src/lte/model/lte-ue-cphy-sap.h b/src/lte/model/lte-ue-cphy-sap.h index 5e79ff29e..2740c647f 100644 --- a/src/lte/model/lte-ue-cphy-sap.h +++ b/src/lte/model/lte-ue-cphy-sap.h @@ -106,7 +106,7 @@ public: /** * \param dlBandwidth the DL bandwidth in number of PRBs */ - virtual void SetDlBandwidth (uint8_t dlBandwidth) = 0; + virtual void SetDlBandwidth (uint16_t dlBandwidth) = 0; /** * \brief Configure uplink (normally done after reception of SIB2) @@ -114,7 +114,7 @@ public: * \param ulEarfcn the uplink carrier frequency (EARFCN) * \param ulBandwidth the UL bandwidth in number of PRBs */ - virtual void ConfigureUplink (uint32_t ulEarfcn, uint8_t ulBandwidth) = 0; + virtual void ConfigureUplink (uint32_t ulEarfcn, uint16_t ulBandwidth) = 0; /** * \brief Configure referenceSignalPower @@ -316,8 +316,8 @@ public: virtual void StartCellSearch (uint32_t dlEarfcn); virtual void SynchronizeWithEnb (uint16_t cellId); virtual void SynchronizeWithEnb (uint16_t cellId, uint32_t dlEarfcn); - virtual void SetDlBandwidth (uint8_t dlBandwidth); - virtual void ConfigureUplink (uint32_t ulEarfcn, uint8_t ulBandwidth); + virtual void SetDlBandwidth (uint16_t dlBandwidth); + virtual void ConfigureUplink (uint32_t ulEarfcn, uint16_t ulBandwidth); virtual void ConfigureReferenceSignalPower (int8_t referenceSignalPower); virtual void SetRnti (uint16_t rnti); virtual void SetTransmissionMode (uint8_t txMode); @@ -375,14 +375,14 @@ MemberLteUeCphySapProvider::SynchronizeWithEnb (uint16_t cellId, uint32_t dlE template void -MemberLteUeCphySapProvider::SetDlBandwidth (uint8_t dlBandwidth) +MemberLteUeCphySapProvider::SetDlBandwidth (uint16_t dlBandwidth) { m_owner->DoSetDlBandwidth (dlBandwidth); } template void -MemberLteUeCphySapProvider::ConfigureUplink (uint32_t ulEarfcn, uint8_t ulBandwidth) +MemberLteUeCphySapProvider::ConfigureUplink (uint32_t ulEarfcn, uint16_t ulBandwidth) { m_owner->DoConfigureUplink (ulEarfcn, ulBandwidth); } diff --git a/src/lte/model/lte-ue-phy.cc b/src/lte/model/lte-ue-phy.cc index 8a864e85c..91da45a85 100644 --- a/src/lte/model/lte-ue-phy.cc +++ b/src/lte/model/lte-ue-phy.cc @@ -1434,7 +1434,7 @@ LteUePhy::DoSynchronizeWithEnb (uint16_t cellId) } void -LteUePhy::DoSetDlBandwidth (uint8_t dlBandwidth) +LteUePhy::DoSetDlBandwidth (uint16_t dlBandwidth) { NS_LOG_FUNCTION (this << (uint32_t) dlBandwidth); if (m_dlBandwidth != dlBandwidth or !m_dlConfigured) @@ -1465,7 +1465,7 @@ LteUePhy::DoSetDlBandwidth (uint8_t dlBandwidth) void -LteUePhy::DoConfigureUplink (uint32_t ulEarfcn, uint8_t ulBandwidth) +LteUePhy::DoConfigureUplink (uint32_t ulEarfcn, uint16_t ulBandwidth) { m_ulEarfcn = ulEarfcn; m_ulBandwidth = ulBandwidth; diff --git a/src/lte/model/lte-ue-phy.h b/src/lte/model/lte-ue-phy.h index 66573677c..a8194a802 100644 --- a/src/lte/model/lte-ue-phy.h +++ b/src/lte/model/lte-ue-phy.h @@ -493,14 +493,14 @@ private: * * \param dlBandwidth the DL bandwidth */ - void DoSetDlBandwidth (uint8_t dlBandwidth); + void DoSetDlBandwidth (uint16_t dlBandwidth); /** * \brief Configure UL uplink function * * \param ulEarfcn UL EARFCN * \param ulBandwidth the UL bandwidth */ - void DoConfigureUplink (uint32_t ulEarfcn, uint8_t ulBandwidth); + void DoConfigureUplink (uint32_t ulEarfcn, uint16_t ulBandwidth); /** * \brief Configure reference signal power function * diff --git a/src/lte/model/lte-ue-rrc.cc b/src/lte/model/lte-ue-rrc.cc index bc533d591..450de8495 100644 --- a/src/lte/model/lte-ue-rrc.cc +++ b/src/lte/model/lte-ue-rrc.cc @@ -1355,9 +1355,9 @@ LteUeRrc::ApplyRadioResourceConfigDedicatedSecondaryCarrier (LteRrcSap::NonCriti uint16_t physCellId = scell.cellIdentification.physCellId; - uint8_t ulBand = scell.radioResourceConfigCommonSCell.ulConfiguration.ulFreqInfo.ulBandwidth; + uint16_t ulBand = scell.radioResourceConfigCommonSCell.ulConfiguration.ulFreqInfo.ulBandwidth; uint32_t ulEarfcn = scell.radioResourceConfigCommonSCell.ulConfiguration.ulFreqInfo.ulCarrierFreq; - uint8_t dlBand = scell.radioResourceConfigCommonSCell.nonUlConfiguration.dlBandwidth; + uint16_t dlBand = scell.radioResourceConfigCommonSCell.nonUlConfiguration.dlBandwidth; uint32_t dlEarfcn = scell.cellIdentification.dlCarrierFreq; uint8_t txMode = scell.radioResourceConfigDedicateSCell.physicalConfigDedicatedSCell.antennaInfo.transmissionMode; uint8_t srsIndex = scell.radioResourceConfigDedicateSCell.physicalConfigDedicatedSCell.soundingRsUlConfigDedicated.srsConfigIndex; diff --git a/src/lte/model/lte-ue-rrc.h b/src/lte/model/lte-ue-rrc.h index 507429198..b58b65239 100644 --- a/src/lte/model/lte-ue-rrc.h +++ b/src/lte/model/lte-ue-rrc.h @@ -822,8 +822,8 @@ private: LteRrcSap::PdschConfigDedicated m_pdschConfigDedicated; ///< the PDSCH condig dedicated - uint8_t m_dlBandwidth; /**< Downlink bandwidth in RBs. */ - uint8_t m_ulBandwidth; /**< Uplink bandwidth in RBs. */ + uint16_t m_dlBandwidth; /**< Downlink bandwidth in RBs. */ + uint16_t m_ulBandwidth; /**< Uplink bandwidth in RBs. */ uint32_t m_dlEarfcn; /**< Downlink carrier frequency. */ uint32_t m_ulEarfcn; /**< Uplink carrier frequency. */ diff --git a/src/lte/test/lte-ffr-simple.cc b/src/lte/test/lte-ffr-simple.cc index 452eeffb8..fceaeb11a 100644 --- a/src/lte/test/lte-ffr-simple.cc +++ b/src/lte/test/lte-ffr-simple.cc @@ -270,7 +270,7 @@ LteFfrSimple::DoGetTpc (uint16_t rnti) return 1; // 1 is mapped to 0 for Accumulated mode, and to -1 in Absolute mode TS36.213 Table 5.1.1.1-2 } -uint8_t +uint16_t LteFfrSimple::DoGetMinContinuousUlBandwidth () { NS_LOG_FUNCTION (this); diff --git a/src/lte/test/lte-ffr-simple.h b/src/lte/test/lte-ffr-simple.h index f3e497d7a..e0863267a 100644 --- a/src/lte/test/lte-ffr-simple.h +++ b/src/lte/test/lte-ffr-simple.h @@ -113,7 +113,7 @@ protected: virtual void DoReportUlCqiInfo (const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters& params); virtual void DoReportUlCqiInfo ( std::map > ulCqiMap ); virtual uint8_t DoGetTpc (uint16_t rnti); - virtual uint8_t DoGetMinContinuousUlBandwidth (); + virtual uint16_t DoGetMinContinuousUlBandwidth (); // FFR SAP RRC PROVIDER IMPLEMENTATION virtual void DoReportUeMeas (uint16_t rnti, LteRrcSap::MeasResults measResults); diff --git a/src/lte/test/lte-test-carrier-aggregation.h b/src/lte/test/lte-test-carrier-aggregation.h index 7d0491981..00b802c17 100644 --- a/src/lte/test/lte-test-carrier-aggregation.h +++ b/src/lte/test/lte-test-carrier-aggregation.h @@ -94,8 +94,8 @@ private: uint16_t m_nUser; ///< the number of users uint16_t m_dist; ///< the distance - uint32_t m_dlBandwidth; ///< DL bandwidth - uint32_t m_ulBandwidth; ///< UL bandwidth + uint16_t m_dlBandwidth; ///< DL bandwidth + uint16_t m_ulBandwidth; ///< UL bandwidth uint32_t m_numberOfComponentCarriers; ///< number of component carriers std::map m_ccDownlinkTraffic; ///< CC DL traffic diff --git a/src/lte/test/lte-test-downlink-power-control.cc b/src/lte/test/lte-test-downlink-power-control.cc index e50a74d22..a6ad7c08b 100644 --- a/src/lte/test/lte-test-downlink-power-control.cc +++ b/src/lte/test/lte-test-downlink-power-control.cc @@ -356,7 +356,7 @@ static LteDownlinkPowerControlTestSuite lteDownlinkPowerControlTestSuite; */ LteDownlinkPowerControlSpectrumValueTestCase::LteDownlinkPowerControlSpectrumValueTestCase (std::string name, - uint16_t earfcn, uint8_t bw, double powerTx, + uint16_t earfcn, uint16_t bw, double powerTx, std::map powerTxMap, std::vector activeRbs, SpectrumValue& expected) : TestCase ("Downlink Power Control: " + name), diff --git a/src/lte/test/lte-test-downlink-power-control.h b/src/lte/test/lte-test-downlink-power-control.h index dccc608bd..33aa63bf3 100644 --- a/src/lte/test/lte-test-downlink-power-control.h +++ b/src/lte/test/lte-test-downlink-power-control.h @@ -75,7 +75,7 @@ public: * \param expected the expected Tx Power Spectral Density */ LteDownlinkPowerControlSpectrumValueTestCase (std::string name, - uint16_t earfcn, uint8_t bw, double powerTx, + uint16_t earfcn, uint16_t bw, double powerTx, std::map powerTxMap, std::vector activeRbs, SpectrumValue& expected); virtual ~LteDownlinkPowerControlSpectrumValueTestCase (); diff --git a/src/lte/test/lte-test-frequency-reuse.cc b/src/lte/test/lte-test-frequency-reuse.cc index 12f5423c7..27dae0e8d 100644 --- a/src/lte/test/lte-test-frequency-reuse.cc +++ b/src/lte/test/lte-test-frequency-reuse.cc @@ -175,7 +175,7 @@ UlDataRxStartNofitication (LteFrTestCase *testcase, } LteFrTestCase::LteFrTestCase (std::string name, - uint32_t userNum,uint8_t dlBandwidth,uint8_t ulBandwidth, + uint32_t userNum,uint16_t dlBandwidth,uint16_t ulBandwidth, std::vector availableDlRb, std::vector availableUlRb) : TestCase ("Test: " + name), m_userNum (userNum), @@ -242,9 +242,9 @@ LteFrTestCase::DoRun (void) LteHardFrTestCase::LteHardFrTestCase (std::string name, uint32_t userNum, std::string schedulerType, - uint8_t dlBandwidth, uint8_t ulBandwidth, - uint8_t dlSubBandOffset, uint8_t dlSubBandwidth, - uint8_t ulSubBandOffset, uint8_t ulSubBandwidth, + uint16_t dlBandwidth, uint16_t ulBandwidth, + uint8_t dlSubBandOffset, uint16_t dlSubBandwidth, + uint8_t ulSubBandOffset, uint16_t ulSubBandwidth, std::vector availableDlRb, std::vector availableUlRb) : LteFrTestCase (name, userNum, dlBandwidth, ulBandwidth, availableDlRb, availableUlRb), m_schedulerType (schedulerType), @@ -357,9 +357,9 @@ LteHardFrTestCase::DoRun (void) LteStrictFrTestCase::LteStrictFrTestCase (std::string name, uint32_t userNum, std::string schedulerType, - uint8_t dlBandwidth, uint8_t ulBandwidth, - uint8_t dlCommonSubBandwidth, uint8_t dlEdgeSubBandOffset, uint8_t dlEdgeSubBandwidth, - uint8_t ulCommonSubBandwidth, uint8_t ulEdgeSubBandOffset, uint8_t ulEdgeSubBandwidth, + uint16_t dlBandwidth, uint16_t ulBandwidth, + uint16_t dlCommonSubBandwidth, uint8_t dlEdgeSubBandOffset, uint16_t dlEdgeSubBandwidth, + uint16_t ulCommonSubBandwidth, uint8_t ulEdgeSubBandOffset, uint16_t ulEdgeSubBandwidth, std::vector availableDlRb, std::vector availableUlRb) : LteFrTestCase (name, userNum, dlBandwidth, ulBandwidth, availableDlRb, availableUlRb), m_schedulerType (schedulerType), @@ -1508,7 +1508,7 @@ LteDistributedFfrAreaTestCase::DoRun (void) Config::SetDefault ("ns3::LteEnbRrc::RsrqFilterCoefficient", UintegerValue (0)); - uint8_t bandwidth = 25; + uint16_t bandwidth = 25; Ptr lteHelper = CreateObject (); Ptr epcHelper = CreateObject (); diff --git a/src/lte/test/lte-test-frequency-reuse.h b/src/lte/test/lte-test-frequency-reuse.h index 606e5cb16..8494d8bf8 100644 --- a/src/lte/test/lte-test-frequency-reuse.h +++ b/src/lte/test/lte-test-frequency-reuse.h @@ -64,7 +64,7 @@ public: * \param availableUlRb the available UL per RB */ LteFrTestCase (std::string name, - uint32_t userNum,uint8_t dlBandwidth,uint8_t ulBandwidth, + uint32_t userNum,uint16_t dlBandwidth,uint16_t ulBandwidth, std::vector availableDlRb, std::vector availableUlRb); virtual ~LteFrTestCase (); @@ -83,8 +83,8 @@ protected: virtual void DoRun (void); uint32_t m_userNum; ///< the number of UE nodes - uint8_t m_dlBandwidth; ///< the DL bandwidth - uint8_t m_ulBandwidth; ///< the UL bandwidth + uint16_t m_dlBandwidth; ///< the DL bandwidth + uint16_t m_ulBandwidth; ///< the UL bandwidth std::vector m_availableDlRb; ///< the available DL for each RB bool m_usedMutedDlRbg; ///< used muted DL RBG? @@ -121,9 +121,9 @@ public: */ LteHardFrTestCase (std::string name, uint32_t userNum, std::string schedulerType, - uint8_t dlBandwidth, uint8_t ulBandwidth, - uint8_t dlSubBandOffset, uint8_t dlSubBandwidth, - uint8_t ulSubBandOffset, uint8_t ulSubBandwidth, + uint16_t dlBandwidth, uint16_t ulBandwidth, + uint8_t dlSubBandOffset, uint16_t dlSubBandwidth, + uint8_t ulSubBandOffset, uint16_t ulSubBandwidth, std::vector availableDlRb, std::vector availableUlRb); virtual ~LteHardFrTestCase (); @@ -168,9 +168,9 @@ public: */ LteStrictFrTestCase (std::string name, uint32_t userNum, std::string schedulerType, - uint8_t dlBandwidth, uint8_t ulBandwidth, - uint8_t dlCommonSubBandwidth, uint8_t dlEdgeSubBandOffset, uint8_t dlEdgeSubBandwidth, - uint8_t ulCommonSubBandwidth, uint8_t ulEdgeSubBandOffset, uint8_t ulEdgeSubBandwidth, + uint16_t dlBandwidth, uint16_t ulBandwidth, + uint16_t dlCommonSubBandwidth, uint8_t dlEdgeSubBandOffset, uint16_t dlEdgeSubBandwidth, + uint16_t ulCommonSubBandwidth, uint8_t ulEdgeSubBandOffset, uint16_t ulEdgeSubBandwidth, std::vector availableDlRb, std::vector availableUlRb); virtual ~LteStrictFrTestCase (); @@ -179,13 +179,13 @@ private: std::string m_schedulerType; ///< scheduler type - uint8_t m_dlCommonSubBandwidth; ///< DL common subbandwidth + uint16_t m_dlCommonSubBandwidth; ///< DL common subbandwidth uint8_t m_dlEdgeSubBandOffset; ///< DL edge subband offset - uint8_t m_dlEdgeSubBandwidth; ///< DL edge subbandwidth + uint16_t m_dlEdgeSubBandwidth; ///< DL edge subbandwidth - uint8_t m_ulCommonSubBandwidth; ///< UL common subbandwidth + uint16_t m_ulCommonSubBandwidth; ///< UL common subbandwidth uint8_t m_ulEdgeSubBandOffset; ///< UL edge subband offset - uint8_t m_ulEdgeSubBandwidth; ///< UL edge subbandwidth + uint16_t m_ulEdgeSubBandwidth; ///< UL edge subbandwidth }; /** @@ -263,8 +263,8 @@ protected: std::string m_schedulerType; ///< the scheduler type - uint8_t m_dlBandwidth; ///< the DL bandwidth - uint8_t m_ulBandwidth; ///< the UL bandwidth + uint16_t m_dlBandwidth; ///< the DL bandwidth + uint16_t m_ulBandwidth; ///< the UL bandwidth Time m_teleportTime; ///< the telport time Ptr m_ueMobility; ///< the UE mobility model diff --git a/src/lte/test/lte-test-uplink-power-control.cc b/src/lte/test/lte-test-uplink-power-control.cc index b3e5c98a8..0f752f299 100644 --- a/src/lte/test/lte-test-uplink-power-control.cc +++ b/src/lte/test/lte-test-uplink-power-control.cc @@ -207,7 +207,7 @@ LteUplinkOpenLoopPowerControlTestCase::DoRun (void) Ptr lteHelper = CreateObject (); - uint8_t bandwidth = 25; + uint16_t bandwidth = 25; double d1 = 0; // Create Nodes: eNodeB and UE @@ -321,7 +321,7 @@ LteUplinkClosedLoopPowerControlAbsoluteModeTestCase::DoRun (void) Ptr lteHelper = CreateObject (); lteHelper->SetFfrAlgorithmType ("ns3::LteFfrSimple"); - uint8_t bandwidth = 25; + uint16_t bandwidth = 25; double d1 = 100; // Create Nodes: eNodeB and UE @@ -434,7 +434,7 @@ LteUplinkClosedLoopPowerControlAccumulatedModeTestCase::DoRun (void) Ptr lteHelper = CreateObject (); lteHelper->SetFfrAlgorithmType ("ns3::LteFfrSimple"); - uint8_t bandwidth = 25; + uint16_t bandwidth = 25; double d1 = 10; // Create Nodes: eNodeB and UE