Bugzilla – Bug 2265
Energy module can not be used on mesh devices
Last modified: 2016-02-05 01:58:14 EST
If one tries to use the WifiRadioEnergyModelHelper to install the Energy model on a Mesh device, the helper will crash. The problem has been discussed in this thread: https://groups.google.com/forum/#!topic/ns-3-users/a4zMuLBD-SU The actual problem is that the "obvious" solution is not obvious at all. A MeshNetDevice can hide more than one WifiNetDevices. Should them all drain from the same energy source ? In any case, the solution is straightforward: a new MeshRadioEnergyModelHelper, which could simply wrap the appropriate WifiRadioEnergyModelHelper and have it install the sources on all the net devices. It is not a good idea to add the mesh code to the existing WifiRadioEnergyModelHelper because this would create a dependency.