Home /Modules/wifi/ValidateWifi4.sleela

ValidateWifi4.sleela

lib/wifi/4/examples/ValidateWifi4.sleela · 14 line(s) · sleela

#sleela 2.5
material;
< Demonstration of Wi-Fi 4 profile validation. >

Wifi4Model model;

print("SLeeLa Wi-Fi 4 reference profile");
print("20 MHz accepted: " + model.isValidChannelWidth(20));
print("40 MHz accepted: " + model.isValidChannelWidth(40));
print("80 MHz accepted: " + model.isValidChannelWidth(80));
print("4 spatial streams accepted: " + model.isValidSpatialStreamCount(4));
print("5 spatial streams accepted: " + model.isValidSpatialStreamCount(5));
print("Discover real adapter capabilities at runtime: " + model.needsRuntimeDiscovery());