wifi: Make sure spectrum PHY interface gets its channel set
This commit is contained in:
committed by
Sebastien Deronne
parent
548947f5f1
commit
5a2a111174
@@ -111,6 +111,7 @@ SpectrumWifiPhy::DoInitialize()
|
||||
WifiPhy::DoInitialize();
|
||||
m_wifiSpectrumPhyInterface = CreateObject<WifiSpectrumPhyInterface>();
|
||||
m_wifiSpectrumPhyInterface->SetSpectrumWifiPhy(this);
|
||||
m_wifiSpectrumPhyInterface->SetChannel(m_channel);
|
||||
if (GetDevice())
|
||||
{
|
||||
m_wifiSpectrumPhyInterface->SetDevice(GetDevice());
|
||||
@@ -233,6 +234,10 @@ void
|
||||
SpectrumWifiPhy::SetChannel(const Ptr<SpectrumChannel> channel)
|
||||
{
|
||||
m_channel = channel;
|
||||
if (m_wifiSpectrumPhyInterface)
|
||||
{
|
||||
m_wifiSpectrumPhyInterface->SetChannel(channel);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user