Skip to content

Commit

Permalink
wifi: Add EHT support in Ideal rate manager
Browse files Browse the repository at this point in the history
  • Loading branch information
sderonne committed Dec 21, 2023
1 parent 7ac21a2 commit a2ad467
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/wifi/model/rate-control/ideal-wifi-manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,8 @@ IdealWifiManager::IsModulationClassSupported(WifiModulationClass mc,
return (GetVhtSupported() && GetVhtSupported(station));
case WIFI_MOD_CLASS_HE:
return (GetHeSupported() && GetHeSupported(station));
case WIFI_MOD_CLASS_EHT:
return (GetEhtSupported() && GetEhtSupported(station));
default:
NS_ABORT_MSG("Unknown modulation class: " << mc);
}
Expand Down Expand Up @@ -627,6 +629,13 @@ IdealWifiManager::IsCandidateModulationClass(WifiModulationClass mc,
}
[[fallthrough]];
case WIFI_MOD_CLASS_HE:
// If the node and peer are both EHT capable, skip non-EHT modes
if (GetEhtSupported() && GetEhtSupported(station))
{
return false;
}
break;
case WIFI_MOD_CLASS_EHT:
break;
default:
NS_ABORT_MSG("Unknown modulation class: " << mc);
Expand Down

0 comments on commit a2ad467

Please sign in to comment.