Bug 2986 - CwTrace and BackoffTrace changes
CwTrace and BackoffTrace changes
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: wifi
unspecified
All All
: P3 normal
Assigned To: sebastien.deronne
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-09-03 12:00 UTC by Tom Henderson
Modified: 2019-02-02 13:15 UTC (History)
1 user (show)

See Also:


Attachments
patch to fix (9.98 KB, patch)
2018-09-03 12:00 UTC, Tom Henderson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2018-09-03 12:00:20 UTC
Created attachment 3175 [details]
patch to fix

1) move CwTrace and BackoffTrace to base class Txop so that DCF users can make use of them

2) BackoffTrace is changed from a TracedValue to a TracedCallback, because TracedValue only reports changed values, while the backoff RNG could re-draw the same value consecutively, thus missing the trace
Comment 1 sebastien.deronne 2018-09-04 04:37:51 UTC
+1
Comment 2 sebastien.deronne 2018-09-04 04:38:51 UTC
Tom, feel free to push this change.
Comment 3 sebastien.deronne 2019-02-02 13:15:50 UTC
Pushed in changeset e5e308b34eb848caddd93374d783c8592d39f9a7