From 24719f1d6d87b4f8fd7620577fcd67e5cca978d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Tue, 27 Feb 2018 20:22:36 +0100 Subject: [PATCH] wifi: Add placeholder to handle extended capabilities IE --- src/wifi/model/ap-wifi-mac.cc | 10 ++++++++++ src/wifi/model/regular-wifi-mac.cc | 1 + src/wifi/model/sta-wifi-mac.cc | 10 ++++++++++ 3 files changed, 21 insertions(+) diff --git a/src/wifi/model/ap-wifi-mac.cc b/src/wifi/model/ap-wifi-mac.cc index bb45e9835..0ae8ab342 100644 --- a/src/wifi/model/ap-wifi-mac.cc +++ b/src/wifi/model/ap-wifi-mac.cc @@ -1131,6 +1131,11 @@ ApWifiMac::Receive (Ptr packet, const WifiMacHeader *hdr) } } } + if (m_htSupported || m_vhtSupported) + { + ExtendedCapabilities extendedCapabilities = assocReq.GetExtendedCapabilities (); + //TODO: to be completed + } if (m_heSupported) { HeCapabilities heCapabilities = assocReq.GetHeCapabilities (); @@ -1312,6 +1317,11 @@ ApWifiMac::Receive (Ptr packet, const WifiMacHeader *hdr) } } } + if (m_htSupported || m_vhtSupported) + { + ExtendedCapabilities extendedCapabilities = reassocReq.GetExtendedCapabilities (); + //TODO: to be completed + } if (m_heSupported) { HeCapabilities heCapabilities = reassocReq.GetHeCapabilities (); diff --git a/src/wifi/model/regular-wifi-mac.cc b/src/wifi/model/regular-wifi-mac.cc index 57c8a06b3..f79a24b3c 100644 --- a/src/wifi/model/regular-wifi-mac.cc +++ b/src/wifi/model/regular-wifi-mac.cc @@ -155,6 +155,7 @@ RegularWifiMac::GetExtendedCapabilities (void) const capabilities.SetVhtSupported (1); } } + //TODO: to be completed return capabilities; } diff --git a/src/wifi/model/sta-wifi-mac.cc b/src/wifi/model/sta-wifi-mac.cc index beb54e7d9..8eff31bb7 100644 --- a/src/wifi/model/sta-wifi-mac.cc +++ b/src/wifi/model/sta-wifi-mac.cc @@ -623,6 +623,11 @@ StaWifiMac::Receive (Ptr packet, const WifiMacHeader *hdr) } } } + if (m_htSupported || m_vhtSupported) + { + ExtendedCapabilities extendedCapabilities = beacon.GetExtendedCapabilities (); + //TODO: to be completed + } if (m_heSupported) { HeCapabilities heCapabilities = beacon.GetHeCapabilities (); @@ -895,6 +900,11 @@ StaWifiMac::Receive (Ptr packet, const WifiMacHeader *hdr) } } } + if (m_htSupported || m_vhtSupported) + { + ExtendedCapabilities extendedCapabilities = assocResp.GetExtendedCapabilities (); + //TODO: to be completed + } if (m_heSupported) { HeCapabilities heCapabilities = assocResp.GetHeCapabilities ();