src/devices/wifi/mac-high-adhoc.cc
changeset 2006 6bb048d50235
parent 2003 335dc094e52a
child 2054 ba8e810bae4c
--- a/src/devices/wifi/mac-high-adhoc.cc	Thu Oct 18 14:32:42 2007 +0200
+++ b/src/devices/wifi/mac-high-adhoc.cc	Thu Oct 18 14:38:09 2007 +0200
@@ -89,8 +89,9 @@
       // supports all the rates we support.
       for (uint32_t i = 0; i < m_phy->GetNModes (); i++)
         {
-          destination->AddSupportedMode (m_phy->GetMode (0));
+          destination->AddSupportedMode (m_phy->GetMode (i));
         }
+      destination->RecordDisassociated ();
     }
 
   m_dca->Queue (packet, hdr);