diff -r 62ce11a18acd -r 865dcb3bf5a0 src/lr-wpan/model/lr-wpan-phy.cc --- a/src/lr-wpan/model/lr-wpan-phy.cc Sun Mar 15 08:41:59 2015 +0100 +++ b/src/lr-wpan/model/lr-wpan-phy.cc Sun Mar 15 09:14:50 2015 +0100 @@ -898,7 +898,7 @@ } if (m_phyPIBAttributes.phyCurrentChannel != attribute->phyCurrentChannel) { - // Cancel a pending tranceiver state change. + // Cancel a pending transceiver state change. // Switch off the transceiver. // TODO: Is switching off the transceiver the right choice? m_trxState = IEEE_802_15_4_PHY_TRX_OFF; @@ -928,6 +928,8 @@ } } m_phyPIBAttributes.phyCurrentChannel = attribute->phyCurrentChannel; + LrWpanSpectrumValueHelper psdHelper; + m_txPsd = psdHelper.CreateTxPowerSpectralDensity (m_phyPIBAttributes.phyTransmitPower, m_phyPIBAttributes.phyCurrentChannel); } break; }