wifi: Use uint8_t for indexes in minstrel
This commit is contained in:
@@ -894,7 +894,7 @@ MinstrelWifiManager::GetNextSample (MinstrelWifiRemoteStation *station)
|
||||
|
||||
//bookeeping for m_index and m_col variables
|
||||
NS_ABORT_MSG_IF (station->m_nModes < 2, "Integer overflow detected");
|
||||
if (station->m_index > static_cast<uint32_t> (station->m_nModes - 2))
|
||||
if (station->m_index > station->m_nModes - 2)
|
||||
{
|
||||
station->m_index = 0;
|
||||
station->m_col++;
|
||||
|
||||
@@ -88,8 +88,8 @@ struct MinstrelWifiRemoteStation : public WifiRemoteStation
|
||||
* then we wrap back to the row 1 col 1.
|
||||
* note: there are many other ways to do this.
|
||||
*/
|
||||
uint32_t m_col; ///< vector index
|
||||
uint32_t m_index; ///< vector index
|
||||
uint8_t m_col; ///< vector index
|
||||
uint8_t m_index; ///< vector index
|
||||
uint32_t m_maxTpRate; ///< the current throughput rate
|
||||
uint32_t m_maxTpRate2; ///< second highest throughput rate
|
||||
uint32_t m_maxProbRate; ///< rate with highest prob of success
|
||||
|
||||
Reference in New Issue
Block a user