From f8e7971e6fc353eee484888c34878c62865669b7 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Mon, 19 Oct 2009 20:55:52 -0700 Subject: [PATCH] Remove SetEdcaParameterForAc() from manual --- doc/manual/wifi.texi | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/doc/manual/wifi.texi b/doc/manual/wifi.texi index 467cfc8da..6b8a648fc 100644 --- a/doc/manual/wifi.texi +++ b/doc/manual/wifi.texi @@ -222,27 +222,17 @@ A possible user code: @smallformat @example QosWifiMacHelper wifiMacHelper = QosWifiMacHelper::Default (); - wifiMacHelper.SetType ("ns3::QapWifiMac", "Ssid", SsidValue (ssid), -"BeaconGeneration", BooleanValue (true), - "BeaconInterval", TimeValue (Seconds (2.5))); - wifiMacHelper.SetEdcaParametersForAc (AC_VO, "MinCw", UintegerValue (2)); + wifiMacHelper.SetType ("ns3::QapWifiMac", + "Ssid", SsidValue (ssid), + "BeaconGeneration", BooleanValue (true), + "BeaconInterval", TimeValue (Seconds (2.5))); wifiMacHelper.SetMsduAggregatorForAc (AC_VO, "ns3::MsduStandardAggregator", -"MaxAmsduSize", UintegerValue (3839)); + "MaxAmsduSize", UintegerValue (3839)); @end example @end smallformat Call to QosWifiMacHelper::Default () is needed in order to set default EDCA parameters properly for all -access classes. Otherwise we should set them one by one: -@smallformat -@example - QosWifiMacHelper wifiMacHelper; - wifiMacHelper.SetEdcaParametersForAc (AC_VO, "MinCw", UintegerValue (2), -"MaxCw", UintegerValue (7), "Aifsn", UintegerValue (2)); - wifiMacHelper.SetEdcaParametersForAc (AC_VI, "MinCw", UintegerValue (7), -"MaxCw", UintegerValue (15), "Aifsn", UintegerValue (2)); - ... -@end example -@end smallformat +access classes; otherwise we should set them one by one. @subsection WifiHelper