wifi: Extend WifiPpdu to return the modulation class

This commit is contained in:
Sébastien Deronne
2019-06-05 21:55:39 +02:00
parent 5da67673fa
commit 995a857fe7
2 changed files with 12 additions and 0 deletions

View File

@@ -449,6 +449,12 @@ WifiPpdu::IsMu (void) const
return ((m_preamble == WIFI_PREAMBLE_VHT_MU) || (m_preamble == WIFI_PREAMBLE_HE_MU));
}
WifiModulationClass
WifiPpdu::GetModulation (void) const
{
return m_modulation;
}
void
WifiPpdu::Print (std::ostream& os) const
{

View File

@@ -102,6 +102,12 @@ public:
*/
bool IsMu (void) const;
/**
* Get the modulation used for the PPDU.
* \return the modulation used for the PPDU
*/
WifiModulationClass GetModulation (void) const;
/**
* \brief Print the PPDU contents.
* \param os output stream in which the data should be printed.