wifi: Allow setting UID of previously received PPDU

This is needed, e.g., in case an EMLSR client receives a Trigger frame via an aux PHY and
sends the response via the main PHY.
This commit is contained in:
Stefano Avallone
2023-04-07 18:49:16 +02:00
committed by Stefano Avallone
parent 4058d7b933
commit 4cb770cbda
2 changed files with 19 additions and 0 deletions

View File

@@ -1839,6 +1839,13 @@ WifiPhy::GetPreviouslyRxPpduUid() const
return m_previouslyRxPpduUid;
}
void
WifiPhy::SetPreviouslyRxPpduUid(uint64_t uid)
{
NS_ASSERT(m_standard >= WIFI_STANDARD_80211be);
m_previouslyRxPpduUid = uid;
}
void
WifiPhy::Reset()
{

View File

@@ -1122,6 +1122,18 @@ class WifiPhy : public Object
*/
uint64_t GetPreviouslyRxPpduUid() const;
/**
* Set the UID of the previously received PPDU.
*
* \param uid the value for the UID of the previously received PPDU
*
* \note This method shall only be used in exceptional circumstances, such as when a PHY
* transmits a response to a Trigger Frame that was received by another PHY. This is the
* case, e.g., when an aux PHY of an EMLSR client receives an ICF but it is the main PHY
* that switches channel and transmits the response to the ICF.
*/
void SetPreviouslyRxPpduUid(uint64_t uid);
/**
* \param currentChannelWidth channel width of the current transmission (MHz)
* \return the width of the guard band (MHz)