author | Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
Wed, 17 Oct 2007 16:19:51 +0200 | |
changeset 1989 | 9ce80e2de247 |
parent 1988 | 210701141b08 |
child 1990 | c73e69288e31 |
--- a/src/devices/wifi/mac-stations.cc Wed Oct 17 15:52:11 2007 +0200 +++ b/src/devices/wifi/mac-stations.cc Wed Oct 17 16:19:51 2007 +0200 @@ -136,6 +136,7 @@ } } MacStation *station = CreateStation (); + station->Reset (); m_stations.push_back (std::make_pair (address, station)); return station; } @@ -310,8 +311,8 @@ WifiMode MacStation::GetSupportedMode (uint32_t i) const { - NS_ASSERT (i > 0); - return m_modes[i-1]; + NS_ASSERT (i < m_modes.size ()); + return m_modes[i]; }