Fixed review comments

This commit is contained in:
Kirill Andreev
2009-07-16 17:57:23 +04:00
parent add92d0ed5
commit bbb9ae6dd3
3 changed files with 0 additions and 19 deletions

View File

@@ -303,20 +303,6 @@ MeshWifiInterfaceMac::InstallPlugin ( Ptr<MeshWifiInterfaceMacPlugin> plugin)
//-----------------------------------------------------------------------------
// Switch channels
//-----------------------------------------------------------------------------
bool MeshWifiInterfaceMac::CanSwitchChannel () const
{
NS_LOG_FUNCTION (this);
// now only YansWifiPhy can switch channels runtime
if (m_phy != 0)
{
Ptr<YansWifiPhy> phy = m_phy->GetObject<YansWifiPhy> ();
return (phy != 0);
}
else
return false;
}
uint16_t MeshWifiInterfaceMac::GetFrequencyChannel () const
{
NS_LOG_FUNCTION (this);
@@ -344,8 +330,6 @@ void MeshWifiInterfaceMac::SwitchFrequencyChannel (uint16_t new_id)
*
* Now we use dirty channel switch -- just change frequency
*/
NS_ASSERT(CanSwitchChannel());
Ptr<YansWifiPhy> phy = m_phy->GetObject<YansWifiPhy> ();
phy->SetChannelNumber (new_id);
// Don't know NAV on new channel

View File

@@ -135,8 +135,6 @@ public:
* Number of channels to use must be limited elsewhere.
*/
//\{
/// Return true if PHY layer can switch channels
bool CanSwitchChannel () const;
/// Current channel Id
uint16_t GetFrequencyChannel () const;
/// Switch channel

View File

@@ -39,7 +39,6 @@ void
MeshHelper::SetStackInstaller (std::string type)
{
NS_LOG_FUNCTION (this << type);
m_stackFactory = ObjectFactory ();
m_stackFactory.SetTypeId (type);
m_stack = m_stackFactory.Create<MeshStack> ();
if (m_stack == 0)