From a14fe4a51cdcae99667ebad6431bebfb6570a04a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Sat, 19 Feb 2022 19:00:05 +0100 Subject: [PATCH] wifi: Add initial PHY support for 802.11be --- src/wifi/model/spectrum-wifi-phy.cc | 1 + src/wifi/model/wifi-phy.cc | 10 ++++++++++ src/wifi/model/wifi-phy.h | 5 +++++ 3 files changed, 16 insertions(+) diff --git a/src/wifi/model/spectrum-wifi-phy.cc b/src/wifi/model/spectrum-wifi-phy.cc index 0ca3afb59..54ba3cd94 100644 --- a/src/wifi/model/spectrum-wifi-phy.cc +++ b/src/wifi/model/spectrum-wifi-phy.cc @@ -448,6 +448,7 @@ SpectrumWifiPhy::GetBandBandwidth (void) const } break; case WIFI_STANDARD_80211ax: + case WIFI_STANDARD_80211be: // Use OFDM subcarrier width of 78.125 KHz as band granularity bandBandwidth = 78125; break; diff --git a/src/wifi/model/wifi-phy.cc b/src/wifi/model/wifi-phy.cc index 6ca067610..4492bfb8c 100644 --- a/src/wifi/model/wifi-phy.cc +++ b/src/wifi/model/wifi-phy.cc @@ -831,6 +831,13 @@ WifiPhy::Configure80211ax (void) AddPhyEntity (WIFI_MOD_CLASS_HE, Create ()); } +void +WifiPhy::Configure80211be (void) +{ + NS_LOG_FUNCTION (this); + Configure80211ax (); +} + void WifiPhy::ConfigureStandard (WifiStandard standard) { @@ -876,6 +883,9 @@ WifiPhy::ConfigureStandard (WifiStandard standard) case WIFI_STANDARD_80211ax: Configure80211ax (); break; + case WIFI_STANDARD_80211be: + Configure80211be (); + break; case WIFI_STANDARD_UNSPECIFIED: default: NS_ASSERT_MSG (false, "Unsupported standard"); diff --git a/src/wifi/model/wifi-phy.h b/src/wifi/model/wifi-phy.h index d4f52f308..c8f23400d 100644 --- a/src/wifi/model/wifi-phy.h +++ b/src/wifi/model/wifi-phy.h @@ -1211,6 +1211,11 @@ private: * supported rates for 802.11ax standard. */ void Configure80211ax (void); + /** + * Configure WifiPhy with appropriate channel frequency and + * supported rates for 802.11be standard. + */ + void Configure80211be (void); /** * Configure the device MCS set with the appropriate HtMcs modes for * the number of available transmit spatial streams