From 08d6ee696bd05be1561d44c65f950ddbbd84ab25 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Fri, 16 Sep 2016 21:04:02 -0700 Subject: [PATCH] wifi: Update documentation about channel width configuration --- src/wifi/doc/source/wifi-user.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/wifi/doc/source/wifi-user.rst b/src/wifi/doc/source/wifi-user.rst index 1b2cf1392..14a9bdd9b 100644 --- a/src/wifi/doc/source/wifi-user.rst +++ b/src/wifi/doc/source/wifi-user.rst @@ -164,7 +164,9 @@ Furthermore, 802.11n provides an optional mode (GreenField mode) to reduce pream wifiPhyHelper.Set ("GreenfieldEnabled",BooleanValue(true)); -802.11n PHY layer can support both 20 (default) or 40 MHz channel width, and 802.11ac PHY layer can use either 20, 40, 80 (default) or 160 MHz channel width. Since the channel width value is overwritten by ``WifiHelper::SetStandard``, this should be done post-install using ``Config::Set``:: +802.11n PHY layer can support both 20 (default) or 40 MHz channel width, and 802.11ac PHY layer can use either 20, 40, 80 (default) or 160 MHz channel width. See below for further documentation on setting the frequency, channel width, and channel number. + +:: WifiHelper wifi; wifi.SetStandard (WIFI_PHY_STANDARD_80211ac); @@ -187,9 +189,6 @@ Furthermore, 802.11n provides an optional mode (GreenField mode) to reduce pream NetDeviceContainer apDevice; apDevice = wifi.Install (phy, mac, wifiApNode); - //Once install is done, we overwrite the channel width value - Config::Set ("/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/Phy/ChannelWidth", UintegerValue (160)); - Channel, frequency, and channel width configuration ===================================================