From d7fe272673ae4efc311cfb1bd35202d0fdccd1c1 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Thu, 18 Oct 2007 14:38:09 +0200 Subject: [PATCH] make sure we record all needed supported modes --- src/devices/wifi/mac-high-adhoc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);