--- 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