diff --git a/src/devices/wifi/mac-high-adhoc.cc b/src/devices/wifi/mac-high-adhoc.cc index 7f5d983d2..2edd56a3b 100644 --- a/src/devices/wifi/mac-high-adhoc.cc +++ b/src/devices/wifi/mac-high-adhoc.cc @@ -89,8 +89,9 @@ MacHighAdhoc::Enqueue (Packet packet, Mac48Address to) // 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);