wifi: Add 80+80MHz channel width type

This commit is contained in:
Sébastien Deronne
2023-03-12 10:35:59 +01:00
parent 709c9b767f
commit 7a265bb5b6
4 changed files with 6 additions and 1 deletions

View File

@@ -293,6 +293,7 @@ GetChannelWidthInMhz(WifiChannelWidthType width)
case WifiChannelWidthType::CW_80MHZ:
return 80;
case WifiChannelWidthType::CW_160MHZ:
case WifiChannelWidthType::CW_80_PLUS_80MHZ:
return 160;
case WifiChannelWidthType::CW_2160MHZ:
return 2160;

View File

@@ -565,6 +565,8 @@ operator<<(std::ostream& os, WifiChannelWidthType width)
return (os << "80MHz");
case WifiChannelWidthType::CW_160MHZ:
return (os << "160MHz");
case WifiChannelWidthType::CW_80_PLUS_80MHZ:
return (os << "80+80MHz");
case WifiChannelWidthType::CW_2160MHZ:
return (os << "2160MHz");
default:

View File

@@ -493,7 +493,8 @@ WifiPhyOperatingChannel::GetWidthType() const
case 80:
return WifiChannelWidthType::CW_80MHZ;
case 160:
return WifiChannelWidthType::CW_160MHZ;
return (m_channelIts.size() == 2) ? WifiChannelWidthType::CW_80_PLUS_80MHZ
: WifiChannelWidthType::CW_160MHZ;
case 2160:
return WifiChannelWidthType::CW_2160MHZ;
case 0:

View File

@@ -41,6 +41,7 @@ enum class WifiChannelWidthType : uint8_t
CW_40MHZ,
CW_80MHZ,
CW_160MHZ,
CW_80_PLUS_80MHZ,
CW_2160MHZ,
MAX,
};