--- a/src/devices/wifi/wifi-net-device.cc Thu Oct 18 15:58:19 2007 +0200
+++ b/src/devices/wifi/wifi-net-device.cc Thu Oct 18 15:59:33 2007 +0200
@@ -308,13 +308,6 @@
{
m_ssid = WifiDefaultParameters::GetSsid ();
m_dca = CreateDca (15, 1023);
-
- SupportedRates rates;
- for (uint32_t i = 0; i < m_phy->GetNModes (); i++)
- {
- WifiMode mode = m_phy->GetMode (i);
- rates.AddSupportedRate (mode.GetPhyRate ());
- }
MacHighNqsta *high = new MacHighNqsta ();
high->SetDevice (this);
@@ -325,7 +318,8 @@
this));
high->SetDisAssociatedCallback (MakeCallback (&NqstaWifiNetDevice::DisAssociated,
this));
- high->SetSupportedRates (rates);
+ high->SetStations (m_stations);
+ high->SetPhy (m_phy);
m_rxMiddle->SetForwardCallback (MakeCallback (&MacHighNqsta::Receive, high));
m_high = high;
}