add newly-created state to state list.
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Thu, 25 Feb 2010 13:51:59 +0100
changeset 6067 ccbdc2b19ea5
parent 6066 7464beb31586
child 6068 a2127017ecb4
add newly-created state to state list.
src/devices/wifi/wifi-remote-station-manager.cc
--- a/src/devices/wifi/wifi-remote-station-manager.cc	Thu Feb 25 13:51:38 2010 +0100
+++ b/src/devices/wifi/wifi-remote-station-manager.cc	Thu Feb 25 13:51:59 2010 +0100
@@ -599,6 +599,7 @@
   state->m_state = WifiRemoteStationState::BRAND_NEW;
   state->m_address = address;
   state->m_modes.push_back (GetDefaultMode ());
+  const_cast<WifiRemoteStationManager *> (this)->m_states.push_back (state);
   return state;
 }
 WifiRemoteStation *