Bug 2037 - HT capabilities may print bogus chars
authorTommaso Pecorella <tommaso.pecorella@unifi.it>
Mon, 26 Jan 2015 23:21:27 +0100
changeset 11158 fa6102d0fa6d
parent 11157 579be6611ad1
child 11159 b744c32b69bc
Bug 2037 - HT capabilities may print bogus chars
RELEASE_NOTES
src/wifi/model/ht-capabilities.cc
--- a/RELEASE_NOTES	Sun Jan 25 06:58:42 2015 +0100
+++ b/RELEASE_NOTES	Mon Jan 26 23:21:27 2015 +0100
@@ -55,6 +55,7 @@
 - Bug 2028 - remove unnecessary Time to double conversions in Wifi models
 - Bug 2029 - new CQI generation approach fix
 - Bug 2030 - provide default values for WifiTxVector
+- Bug 2037 - HT capabilities may print bogus chars
 - Bug 2038 - Stop method does not stop next wave in WaveformGenerator
 - Bug 2045 - Missing NS_OBJECT_ENSURE_REGISTERED in TcpTxBuffer and TcpRxBuffer
 
--- a/src/wifi/model/ht-capabilities.cc	Sun Jan 25 06:58:42 2015 +0100
+++ b/src/wifi/model/ht-capabilities.cc	Mon Jan 26 23:21:27 2015 +0100
@@ -313,9 +313,10 @@
 std::ostream &
 operator << (std::ostream &os, const HtCapabilities &htcapabilities)
 {
-  os <<  htcapabilities.GetLdpc () << "|" << htcapabilities.GetSupportedChannelWidth ()
-  << "|" << htcapabilities.GetGreenfield ()
-  << "|" << htcapabilities.GetShortGuardInterval20 ();
+  os <<  bool (htcapabilities.GetLdpc ())
+     << "|" << bool (htcapabilities.GetSupportedChannelWidth ())
+     << "|" << bool (htcapabilities.GetGreenfield ())
+     << "|" << bool (htcapabilities.GetShortGuardInterval20 ());
 
   return os;
 }