Fixed review comments
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user