Bug 500 - [contribution] Trace source for MediumBusy event of DcaTxop
[contribution] Trace source for MediumBusy event of DcaTxop
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: wifi
pre-release
All All
: P5 enhancement
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-17 06:45 UTC by Francesco Malandrino
Modified: 2009-02-24 02:28 UTC (History)
3 users (show)

See Also:


Attachments
The patch (3.09 KB, patch)
2009-02-17 06:45 UTC, Francesco Malandrino
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Malandrino 2009-02-17 06:45:32 UTC
Created attachment 379 [details]
The patch

Trace source for MediumBusy event.
The attached patch adds a MediumBusy trace source to the DcaTxop component. The callback is invoked when the station "would transmit" and has to delay the transmission due to busy channel. See also the discussion: http://groups.google.com/group/ns-3-users/t/887072e0e15b915d.
The patch also adds a DcaTxop attribute to the NqstaWifiMac component.
Comment 1 Francesco Malandrino 2009-02-17 06:48:57 UTC
The trace address is:
/NodeList/[i]/DeviceList/[i]/$ns3::WifiNetDevice/Mac/$ns3::NqstaWifiMac/DcaTxop/MediumBusy
Comment 2 Mathieu Lacage 2009-02-24 02:23:11 UTC
I pushed a modified version of this patch:
changeset: 42c89b271a69

1) I added the same code to Nqap and Adhoc wifi macs
2) I did not push the DcaTxop trace source: it does not seem of wider use beyond yourself.

If you feel that the DcaTxop trace source is really of wide use, please, let me know. Ideally, you could describe an example scenario where it could/should be used.
Comment 3 Francesco Malandrino 2009-02-24 02:26:58 UTC
Uhm, I added the DcaTxop property as I needed to access its MediumBusy trace source.
If the trace source is directly available from the *WifiMac classes, even better.
Comment 4 Mathieu Lacage 2009-02-24 02:28:12 UTC
(In reply to comment #3)

> If the trace source is directly available from the *WifiMac classes, even
> better.

No, I just made the DcaTxop available from all *WifiMac classes.