wifi: Allow ChannelAccessManagers to be accessed via attribute system

This commit is contained in:
Stefano Avallone
2024-01-26 15:20:59 +01:00
committed by Stefano Avallone
parent ce71953eaf
commit b3429183fe

View File

@@ -34,6 +34,7 @@
#include "ns3/he-configuration.h"
#include "ns3/ht-configuration.h"
#include "ns3/log.h"
#include "ns3/object-vector.h"
#include "ns3/packet.h"
#include "ns3/pointer.h"
#include "ns3/shuffle.h"
@@ -136,6 +137,12 @@ WifiMac::GetTypeId()
PointerValue(),
MakePointerAccessor(&WifiMac::GetBKQueue, &WifiMac::SetBkQueue),
MakePointerChecker<QosTxop>())
.AddAttribute(
"ChannelAccessManagers",
"The Channel Access Manager(s) attached to this device.",
ObjectVectorValue(),
MakeObjectVectorAccessor(&WifiMac::GetChannelAccessManager, &WifiMac::GetNLinks),
MakeObjectVectorChecker<ChannelAccessManager>())
.AddAttribute(
"MpduBufferSize",
"The size (in number of MPDUs) of the buffer used for each BlockAck "