Bugzilla – Bug 2673
run-time channel switch does not update WiFi spectrum model
Last modified: 2017-07-04 15:38:06 UTC
Described in this thread: https://groups.google.com/forum/#!topic/ns-3-users/Ih8Hgs2qgeg The gist of the problem is as follows: "When calling (channel switch) during run time, the channel switch on the devices is actually conducted: DEBUG_LOG: 1s -1 SpectrumWifiPhy:DoChannelSwitch(): switching channel 36 -> 40 DEBUG_LOG: 1s -1 WifiPhy:SetChannelNumber(): Setting frequency to 5200; width to 20 However there is no call to create a new receiving channel on the phy using the new frequency/width. Therefore, the first attempt to receive on packet on that phy fails since since the spectrum model is not updated"
Created attachment 2804 [details] program to reproduce the problem
Tom, I think you are the most familiar with this part of the code, can you have a look at it? Thanks.
Created attachment 2877 [details] patch to fix
It looks ok, could the submitter check whether his problem is solved by applying Tom's patch?
waiting for submitter to confirm this solves the problem so that patch can be pushed
(In reply to sebastien.deronne from comment #5) > waiting for submitter to confirm this solves the problem so that patch can > be pushed I just tested this patch using a minimal example and the current ns3-dev version. It works as accepted. Thank you very much. I would be very happy if this is going to be part of ns-3.27 I planing to merge a larger project to ns-3.27 where this channel switch functionality is a key part. I will report back if I encounter any additional bugs/difficulties. (Sorry for the late reply, I was afk for a week).
(In reply to Michael Rademacher from comment #6) > (In reply to sebastien.deronne from comment #5) > > waiting for submitter to confirm this solves the problem so that patch can > > be pushed > > I just tested this patch using a minimal example and the current ns3-dev > version. It works as accepted. Thank you very much. > > I would be very happy if this is going to be part of ns-3.27 > > I planing to merge a larger project to ns-3.27 where this channel switch > functionality is a key part. I will report back if I encounter any > additional bugs/difficulties. > > (Sorry for the late reply, I was afk for a week). Thanks for you feedback. Yes it will be part of ns-3.27, I will push Tom's patch to our mainstream later this week.
fixed in changeset 12951:51a7df2fd8a2