diff --git a/src/wifi/helper/spectrum-wifi-helper.cc b/src/wifi/helper/spectrum-wifi-helper.cc index f433b0f09..56b3aa266 100644 --- a/src/wifi/helper/spectrum-wifi-helper.cc +++ b/src/wifi/helper/spectrum-wifi-helper.cc @@ -54,16 +54,13 @@ SpectrumWifiPhyHelper::SpectrumWifiPhyHelper(uint8_t nLinks) void SpectrumWifiPhyHelper::SetChannel(const Ptr channel) { - m_channels[WHOLE_WIFI_SPECTRUM] = channel; - AddWifiBandwidthFilter(channel); + AddChannel(channel); } void SpectrumWifiPhyHelper::SetChannel(const std::string& channelName) { - Ptr channel = Names::Find(channelName); - m_channels[WHOLE_WIFI_SPECTRUM] = channel; - AddWifiBandwidthFilter(channel); + AddChannel(channelName); } void