HI,
the code that I used for my scenario is :
//------------------------------------------------------------------------------
NodeContainer c; //we need a container to put nodes
c.Create (numNodes); // number of nodes
// The below set of helpers will help us to put together the wifi NICs we want
WifiHelper wifi;
// create and manage PHY
YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default ();
// set it to zero; otherwise, gain will be added
wifiPhy.Set ("RxGain", DoubleValue (-10) );
//type of PCAP traces to be used
wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
YansWifiChannelHelper wifiChannel ;
wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
wifiChannel.AddPropagationLoss ("ns3::FriisPropagationLossModel");
wifiPhy.SetChannel (wifiChannel.Create ());
// Add a non-QoS upper mac, and disable rate control
NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default ();
wifi.SetStandard (WIFI_PHY_STANDARD_80211p_CCH); // WIFI_PHY_STANDARD_80211p_SCH
//other standards
/*WIFI_PHY_STANDARD_80211a
WIFI_PHY_STANDARD_80211b
WIFI_PHY_STANDARD_80211g
WIFI_PHY_STANDARD_80211_10Mhz
WIFI_PHY_STANDARD_80211_5Mhz
WIFI_PHY_STANDARD_holland
WIFI_PHY_STANDARD_80211p_CCH
WIFI_PHY_STANDARD_80211p_SCH
*/
wifi.SetRemoteStationManager (algorithm); //Ideal ,Arf ,CaraWifiManager and so on
NetDeviceContainer fdevices = wifi.Install (wifiPhy, wifiMac, c);
//--------------------------------------------------------------------------------------------
I don't have a lot of time now ,so I didn't write a lot of comments ,
sorry about that
Regards ,
Profentzas Christos