wifi: cleanup duplicated setters in VhtCapabilities
This commit is contained in:
@@ -255,18 +255,6 @@ VhtCapabilities::SetMaxAmpduLengthExponent (uint8_t exponent)
|
||||
m_maxAmpduLengthExponent = exponent;
|
||||
}
|
||||
|
||||
void
|
||||
VhtCapabilities::SetRxMcsMap (uint16_t map)
|
||||
{
|
||||
//Set each element in the map accoriding to the 2 bits representing it page 98 in the 11ac standard
|
||||
uint8_t n;
|
||||
for (uint8_t i = 0; i < 8; i++)
|
||||
{
|
||||
n = i * 2;
|
||||
m_rxMcsMap[i] = (map >> n) & 0x03;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
VhtCapabilities::SetRxMcsMap (uint8_t mcs, uint8_t nss)
|
||||
{
|
||||
@@ -275,18 +263,6 @@ VhtCapabilities::SetRxMcsMap (uint8_t mcs, uint8_t nss)
|
||||
m_rxMcsMap[nss - 1] = mcs - 7; //1 = MCS 8; 2 = MCS 9
|
||||
}
|
||||
|
||||
void
|
||||
VhtCapabilities::SetTxMcsMap (uint16_t map)
|
||||
{
|
||||
//Set each element in the map accoriding to the 2 bits representing it page 98 in the 11ac standard
|
||||
uint8_t n;
|
||||
for (uint8_t i = 0; i < 8; i++)
|
||||
{
|
||||
n = i * 2;
|
||||
m_txMcsMap[i] = (map >> n) & 0x03;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
VhtCapabilities::SetTxMcsMap (uint8_t mcs, uint8_t nss)
|
||||
{
|
||||
|
||||
@@ -195,28 +195,11 @@ public:
|
||||
*/
|
||||
uint8_t GetMaxAmpduLengthExponent () const;
|
||||
|
||||
// MCS and NSS field information
|
||||
// For each value of NSS ranging from 1 to 8, we need to encode two bits.
|
||||
// The value 0 indicates that the maximum MCS for that spatial stream is 7.
|
||||
// The value 1 indicates that the maximum MCS for that spatial stream is 8.
|
||||
// The value 2 indicates that the maximum MCS for that spatial stream is 9.
|
||||
//
|
||||
// The maps may be set all at once by passing in a 16-bit field corresponding
|
||||
// to the above, or incrementally for each NSS separately, where the
|
||||
// MCS value must be in the range 7-9.
|
||||
/**
|
||||
* \param map The 16-bit encoding of Max MCS for each of 8 spatial streams
|
||||
*/
|
||||
void SetRxMcsMap (uint16_t map);
|
||||
/**
|
||||
* \param mcs Max MCS value (between 7 and 9)
|
||||
* \param nss Spatial stream for which the Max MCS value is being set
|
||||
*/
|
||||
void SetRxMcsMap (uint8_t mcs, uint8_t nss);
|
||||
/**
|
||||
* \param map The 16-bit encoding of Max MCS for each of 8 spatial streams
|
||||
*/
|
||||
void SetTxMcsMap (uint16_t map);
|
||||
/**
|
||||
* \param mcs Max MCS value (between 7 and 9)
|
||||
* \param nss Spatial stream for which the Max MCS value is being set
|
||||
|
||||
Reference in New Issue
Block a user