From 135d53dff39362177dbec549462724eca4e7fc9f Mon Sep 17 00:00:00 2001 From: Stefano Avallone Date: Tue, 27 Feb 2024 23:16:08 +0100 Subject: [PATCH] wifi: Fix NSS selection in 6 GHz band --- src/wifi/model/wifi-remote-station-manager.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wifi/model/wifi-remote-station-manager.cc b/src/wifi/model/wifi-remote-station-manager.cc index cfb2fe393..62d3c7cf2 100644 --- a/src/wifi/model/wifi-remote-station-manager.cc +++ b/src/wifi/model/wifi-remote-station-manager.cc @@ -2006,10 +2006,14 @@ WifiRemoteStationManager::GetAggregation(const WifiRemoteStation* station) const uint8_t WifiRemoteStationManager::GetNumberOfSupportedStreams(const WifiRemoteStation* station) const { - Ptr htCapabilities = station->m_state->m_htCapabilities; + const auto htCapabilities = station->m_state->m_htCapabilities; if (!htCapabilities) { + if (const auto heCapabilities = station->m_state->m_heCapabilities) + { + return heCapabilities->GetHighestNssSupported(); + } return 1; } return htCapabilities->GetRxHighestSupportedAntennas();