Bug 500

Summary: [contribution] Trace source for MediumBusy event of DcaTxop
Product: ns-3 Reporter: Francesco Malandrino <francesco.malandrino>
Component: wifiAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: enhancement CC: francesco.malandrino, gjcarneiro, mathieu.lacage
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   
Attachments: The patch

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.