changeset 2258 | 666099a753e0 |
parent 2257 | 71a58e70c671 |
child 2470 | 254581fb9e9c |
--- a/samples/main-adhoc-wifi.cc Thu Jan 31 22:11:03 2008 +0100 +++ b/samples/main-adhoc-wifi.cc Thu Jan 31 22:23:46 2008 +0100 @@ -50,7 +50,7 @@ device->Attach (channel); Ptr<MobilityModel> mobility = CreateObject<StaticMobilityModel> (); mobility->SetPosition (position); - node->AddInterface (mobility); + node->AggregateObject (mobility); return node; }