Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(955)

Unified Diff: src/wifi/examples/wifi-manager-example.cc

Issue 333070043: Eliminate Visual Studio compiler warnings (Closed)
Patch Set: Updates to address review comments Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/wifi/examples/wifi-phy-configuration.cc » ('j') | src/wifi/model/ap-wifi-mac.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wifi/examples/wifi-manager-example.cc
===================================================================
--- a/src/wifi/examples/wifi-manager-example.cc
+++ b/src/wifi/examples/wifi-manager-example.cc
@@ -409,12 +409,14 @@
Ptr<WifiNetDevice> wndServer = ndServer->GetObject<WifiNetDevice> ();
Ptr<WifiPhy> wifiPhyPtrClient = wndClient->GetPhy ();
Ptr<WifiPhy> wifiPhyPtrServer = wndServer->GetPhy ();
- wifiPhyPtrClient->SetNumberOfAntennas (clientNss);
- wifiPhyPtrClient->SetMaxSupportedTxSpatialStreams (clientNss);
- wifiPhyPtrClient->SetMaxSupportedRxSpatialStreams (clientNss);
- wifiPhyPtrServer->SetNumberOfAntennas (serverNss);
- wifiPhyPtrServer->SetMaxSupportedTxSpatialStreams (serverNss);
- wifiPhyPtrServer->SetMaxSupportedRxSpatialStreams (serverNss);
+ uint8_t t_clientNss = static_cast<uint8_t> (clientNss);
+ uint8_t t_serverNss = static_cast<uint8_t> (serverNss);
+ wifiPhyPtrClient->SetNumberOfAntennas (t_clientNss);
+ wifiPhyPtrClient->SetMaxSupportedTxSpatialStreams (t_clientNss);
+ wifiPhyPtrClient->SetMaxSupportedRxSpatialStreams (t_clientNss);
+ wifiPhyPtrServer->SetNumberOfAntennas (t_serverNss);
+ wifiPhyPtrServer->SetMaxSupportedTxSpatialStreams (t_serverNss);
+ wifiPhyPtrServer->SetMaxSupportedRxSpatialStreams (t_serverNss);
// Only set the channel width and guard interval for HT and VHT modes
if (serverSelectedStandard.m_name == "802.11n-5GHz"
|| serverSelectedStandard.m_name == "802.11n-2.4GHz"
« no previous file with comments | « no previous file | src/wifi/examples/wifi-phy-configuration.cc » ('j') | src/wifi/model/ap-wifi-mac.cc » ('J')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b