wifi: (reverts !899) Avoid return value conflicting with Python bindings

As discussed in #613, MR !899 introduced a return value that is causing
problems with the Python bindings.
This commit is contained in:
Tom Henderson
2022-04-18 13:37:40 -07:00
parent 51b89bcf54
commit 8e4376a202
3 changed files with 3 additions and 3 deletions

View File

@@ -136,7 +136,7 @@ WifiMode::GetConstellationSize (void) const
return item->GetConstellationSizeCallback ();
}
const std::string&
std::string
WifiMode::GetUniqueName (void) const
{
//needed for ostream printing of the invalid mode

View File

@@ -127,7 +127,7 @@ public:
* \returns a human-readable representation of this WifiMode
* instance.
*/
const std::string& GetUniqueName (void) const;
std::string GetUniqueName (void) const;
/**
* \returns true if this mode is a mandatory mode, false
* otherwise.

View File

@@ -337,7 +337,7 @@ WifiTxVector::IsValid (void) const
{
return false;
}
const std::string& modeName = m_mode.GetUniqueName ();
std::string modeName = m_mode.GetUniqueName ();
if (m_channelWidth == 20)
{
if (m_nss != 3 && m_nss != 6)