wifi: Print supported MCS in HtOperation IE

This commit is contained in:
Sébastien Deronne
2018-04-01 10:51:02 +02:00
parent 6d142d9cd2
commit 4f05f5f8df
2 changed files with 7 additions and 3 deletions

View File

@@ -270,7 +270,7 @@ HtOperation::GetPhase (void) const
}
bool
HtOperation::IsSupportedMcs (uint8_t mcs)
HtOperation::IsSupportedMcs (uint8_t mcs) const
{
if (m_rxMcsBitmask[mcs] == 1)
{
@@ -517,7 +517,11 @@ operator << (std::ostream &os, const HtOperation &htOperation)
<< "|" << bool (htOperation.GetTxMcsSetDefined ())
<< "|" << bool (htOperation.GetTxRxMcsSetUnequal ())
<< "|" << +htOperation.GetTxMaxNSpatialStreams ()
<< "|" << bool (htOperation.GetTxUnequalModulation ());
<< "|" << bool (htOperation.GetTxUnequalModulation ()) << "|";
for (uint8_t i = 0; i < MAX_SUPPORTED_MCS; i++)
{
os << htOperation.IsSupportedMcs (i) << " ";
}
return os;
}

View File

@@ -323,7 +323,7 @@ public:
*\
* \return the MCS is supported
*/
bool IsSupportedMcs (uint8_t mcs);
bool IsSupportedMcs (uint8_t mcs) const;
/**
* Return receive highest supported data rate.
*