Bug 2154

Summary: Incorrect power calculation in wifi power adaptation examples
Product: ns-3 Reporter: Matías Richart <matis18>
Component: wifiAssignee: sebastien.deronne
Status: RESOLVED FIXED    
Severity: normal CC: matis18, ns-bugs
Priority: P5    
Version: ns-3-dev   
Hardware: PC   
OS: Linux   
Attachments: Patch

Description Matías Richart 2015-07-09 17:14:26 UTC
Created attachment 2092 [details]
Patch

In the examples power-adaptation-distance and power-adaptation-interference the power is converted from dBm to mW in the wrong place. It has to be converted before calculating the energy.
That makes the power graphs change a lot. 

I attach a patch where I correct this and also add that only data frames are considered for power usage calculation.
Comment 1 sebastien.deronne 2015-07-14 14:21:07 UTC
I agree with the fix.
Comment 2 sebastien.deronne 2015-07-22 17:35:26 UTC
Committed in changeset 11525:7e0fee5babf8