24 #include "ns3/config.h"
25 #include "ns3/double.h"
26 #include "ns3/eht-phy.h"
29 #include "ns3/sta-wifi-mac.h"
30 #include "ns3/wifi-net-device.h"
31 #include "ns3/wifi-phy.h"
32 #include "ns3/wifi-utils.h"
78 if (
mac && !
mac->IsAssociated())
80 NS_LOG_DEBUG(
"This is not an associated STA: skip OBSS PD algorithm");
86 uint8_t bssColor = heConfiguration->GetBssColor();
100 bool isObss = (bssColor !=
params.bssColor);
107 <<
" is below OBSS-PD level of " << obssPdLevel
108 <<
"; reset PHY to IDLE");
113 NS_LOG_DEBUG(
"Frame is OBSS and RSSI is above OBSS-PD level");
Constant OBSS PD algorithm.
void ConnectWifiNetDevice(const Ptr< WifiNetDevice > device) override
Connect the WifiNetDevice and setup eventual callbacks.
void ReceiveHeSigA(HeSigAParameters params) override
ConstantObssPdAlgorithm()
static TypeId GetTypeId()
Get the type ID.
Ptr< T > GetObject() const
Get a pointer to the requested aggregated Object.
OBSS PD algorithm interface.
void ResetPhy(HeSigAParameters params)
Reset PHY to IDLE.
Ptr< WifiNetDevice > m_device
Pointer to the WifiNetDevice.
virtual void ConnectWifiNetDevice(const Ptr< WifiNetDevice > device)
Connect the WifiNetDevice and setup eventual callbacks.
double GetObssPdLevel() const
The Wifi MAC high model for a non-AP STA in a BSS.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Ptr< WifiMac > GetMac() const
Ptr< HeConfiguration > GetHeConfiguration() const
Ptr< WifiPhy > GetPhy() const
Ptr< PhyEntity > GetPhyEntity(WifiModulationClass modulation) const
Get the supported PHY entity corresponding to the modulation class.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
@ WIFI_MOD_CLASS_EHT
EHT (Clause 36)
@ WIFI_MOD_CLASS_HE
HE (Clause 27)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
double WToDbm(double w)
Convert from Watts to dBm.
Callback< R, Args... > MakeCallback(R(T::*memPtr)(Args...), OBJ objPtr)
Build Callbacks for class method members which take varying numbers of arguments and potentially retu...
params
Fit Fluctuating Two Ray model to the 3GPP TR 38.901 using the Anderson-Darling goodness-of-fit ##.
Parameters for received HE-SIG-A for OBSS_PD based SR.