Bug 2153

Summary: Incorrect power limits in wifi power control algorithms
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: Add maxPower and minPower variables

Description Matías Richart 2015-07-09 16:52:39 UTC
Created attachment 2091 [details]
Add maxPower and minPower variables

The initial maximal and minimal powers are wrong. In the algorithms (PARF and APARF) it is assumed that always the maximal power is the number of power levels minus one and the minimal always zero. That is not always the case for power.

I attach a patch where two variables (max and min power) are added, and its values are obtained from the phy layer.
Comment 1 sebastien.deronne 2015-07-14 06:03:49 UTC
The fix sounds ok.
Comment 2 sebastien.deronne 2015-07-22 17:34:33 UTC
Committed in changeset 11524:f0c39728e884