wifi: Use uint8_t for indexes in minstrel

This commit is contained in:
Sébastien Deronne
2018-02-18 08:22:29 +01:00
parent 911be7ce42
commit e45f43cd92
2 changed files with 3 additions and 3 deletions

View File

@@ -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++;

View File

@@ -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