Bug 2153 - Incorrect power limits in wifi power control algorithms
Incorrect power limits in wifi power control algorithms
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: wifi
ns-3-dev
PC Linux
: P5 normal
Assigned To: sebastien.deronne
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-07-09 16:52 EDT by Matías Richart
Modified: 2015-07-22 17:34 EDT (History)
2 users (show)

See Also:


Attachments
Add maxPower and minPower variables (5.74 KB, patch)
2015-07-09 16:52 EDT, Matías Richart
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matías Richart 2015-07-09 16:52:39 EDT
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 EDT
The fix sounds ok.
Comment 2 sebastien.deronne 2015-07-22 17:34:33 EDT
Committed in changeset 11524:f0c39728e884