Hi,
may be it helps
YansWifiChannelHelper wifiChannel = YansWifiChannelHelper::Default();
wifiChannel.AddPropagationLoss("ns3::NakagamiPropagationLossModel");
YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default();
// All nodes on channel 6 should be created together,
// adding another set of nodes B later, B will actually do not hear
the nodes in set A
// Note that no inter-channel interference is yet implemented
wifiPhy.Set("ChannelNumber",UintegerValue(6));
wifiPhy.SetChannel(wifiChannel.Create());
NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default();
wifiMac.SetType("ns3::AdhocWifiMac");
NetDeviceContainer netDev = wifi.Install(wifiPhy, wifiMac, nodes);
Regards,
Alessandro R.
> --
> You received this message because you are subscribed to the Google Groups
> "ns-3-users" group.
> To post to this group, send email to
ns-3-...@googlegroups.com.
> To unsubscribe from this group, send email to
>
ns-3-users+...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/ns-3-users?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>