WIFI-1598: OSGW - send 11ax instead of 11x for radio mode X

This commit is contained in:
Mike Hansen
2021-02-16 16:09:56 -05:00
parent 8ce5b3ed89
commit 19be90a423
2 changed files with 19 additions and 14 deletions

View File

@@ -113,7 +113,7 @@ public class OvsdbRadioConfig extends OvsdbDaoBase {
case modeG: case modeG:
hwMode = "11g"; hwMode = "11g";
break; break;
case modeX: case modeAX:
hwMode = "11ax"; hwMode = "11ax";
break; break;
case modeN: case modeN:

View File

@@ -162,8 +162,7 @@ public class OvsdbSsidConfig extends OvsdbDaoBase {
} }
} }
void configureCustomOptionsForDynamicVlan(int dynamicVlan, void configureCustomOptionsForDynamicVlan(int dynamicVlan, Map<String, String> customOptions) {
Map<String, String> customOptions) {
customOptions.put("dynamic_vlan", String.valueOf(dynamicVlan)); customOptions.put("dynamic_vlan", String.valueOf(dynamicVlan));
} }
@@ -542,14 +541,18 @@ public class OvsdbSsidConfig extends OvsdbDaoBase {
apBridge = radioConfiguration.getStationIsolation() == StateSetting.disabled; // stationIsolation apBridge = radioConfiguration.getStationIsolation() == StateSetting.disabled; // stationIsolation
fragThresholdBytes = radioConfiguration.getFragmentationThresholdBytes(); fragThresholdBytes = radioConfiguration.getFragmentationThresholdBytes();
} }
String minHwMode = "11n"; // min_hw_mode is 11ac, wifi 5, we can
// also take ++ (11ax) but 2.4GHz only String minHwMode = "11n"; // min_hw_mode is 11n
// Wifi4 -- if (radioMode.equals(RadioMode.modeAC) && !radioType.equals(RadioType.is2dot4GHz)) {
if (!radioType.equals(RadioType.is2dot4GHz)) {
minHwMode = "11ac"; minHwMode = "11ac";
} } else if (radioMode.equals(RadioMode.modeA) && !radioType.equals(RadioType.is2dot4GHz)) {
if (!radioType.equals(RadioType.is2dot4GHz) && radioMode.equals(RadioMode.modeX)) { minHwMode = "11a";
minHwMode = "11x"; } else if (radioMode.equals(RadioMode.modeB) && radioType.equals(RadioType.is2dot4GHz)) {
minHwMode = "11b";
} else if (radioMode.equals(RadioMode.modeG) && !radioType.equals(RadioType.is2dot4GHz)) {
minHwMode = "11g";
} else if (radioMode.equals(RadioMode.modeAX)) {
minHwMode = "11ax";
} }
// off by default // off by default
@@ -610,8 +613,10 @@ public class OvsdbSsidConfig extends OvsdbDaoBase {
radiusNasId = NasIdType.DEFAULT.toString(); radiusNasId = NasIdType.DEFAULT.toString();
radiusNasIp = NasIpType.WAN_IP.toString(); radiusNasIp = NasIpType.WAN_IP.toString();
} }
if (ssidConfig.getForwardMode() == null || ssidConfig.getForwardMode().equals(NetworkForwardMode.BRIDGE)) { if (ssidConfig.getForwardMode() == null
// get the dynamicVlan value for this ssid, when in bridge forward mode || ssidConfig.getForwardMode().equals(NetworkForwardMode.BRIDGE)) {
// get the dynamicVlan value for this ssid, when in
// bridge forward mode
// null implies bridge // null implies bridge
dynamicVlan = ssidConfig.getDynamicVlan().getId(); dynamicVlan = ssidConfig.getDynamicVlan().getId();
} }