wifi: WifiPhy::GetBand can be public

This commit is contained in:
Sebastien Deronne
2022-05-17 21:37:08 +02:00
committed by Sébastien Deronne
parent b24d62fd70
commit 8a7783e078

View File

@@ -1064,6 +1064,16 @@ public:
*/
uint8_t GetPrimaryChannelNumber (uint16_t primaryChannelWidth) const;
/**
* Get the start band index and the stop band index for a given band
*
* \param bandWidth the width of the band to be returned (MHz)
* \param bandIndex the index of the band to be returned
*
* \return a pair of start and stop indexes that defines the band
*/
virtual WifiSpectrumBand GetBand (uint16_t bandWidth, uint8_t bandIndex = 0);
protected:
virtual void DoDispose (void);
@@ -1095,16 +1105,6 @@ protected:
*/
void SwitchMaybeToCcaBusy (const Ptr<const WifiPpdu> ppdu);
/**
* Get the start band index and the stop band index for a given band
*
* \param bandWidth the width of the band to be returned (MHz)
* \param bandIndex the index of the band to be returned
*
* \return a pair of start and stop indexes that defines the band
*/
virtual WifiSpectrumBand GetBand (uint16_t bandWidth, uint8_t bandIndex = 0);
/**
* Add the PHY entity to the map of supported PHY entities for the
* given modulation class for the WifiPhy instance.