src/devices/mesh/mesh-wifi-interface-mac.cc
changeset 5123 bdd3ae2a9816
parent 5119 854f1900afd1
child 5125 b90c6c0af6a3
--- a/src/devices/mesh/mesh-wifi-interface-mac.cc	Thu Jul 16 11:51:46 2009 +0400
+++ b/src/devices/mesh/mesh-wifi-interface-mac.cc	Thu Jul 16 17:57:23 2009 +0400
@@ -303,20 +303,6 @@
 //-----------------------------------------------------------------------------
 // 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 @@
    *
    * 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