mirror of
				https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
				synced 2025-10-31 02:27:49 +00:00 
			
		
		
		
	WIFI-1598: OSGW - send 11ax instead of 11x for radio mode X
This commit is contained in:
		| @@ -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: | ||||||
|   | |||||||
| @@ -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)); | ||||||
|     } |     } | ||||||
|  |  | ||||||
| @@ -261,7 +260,7 @@ public class OvsdbSsidConfig extends OvsdbDaoBase { | |||||||
|      * @param radiusNasIp |      * @param radiusNasIp | ||||||
|      * @param radiusOperatorName |      * @param radiusOperatorName | ||||||
|      * @param updateColumns |      * @param updateColumns | ||||||
|      * @param dynamicVlan  |      * @param dynamicVlan | ||||||
|      */ |      */ | ||||||
|     void configureCustomOptionsForSsid(OvsdbClient ovsdbClient, boolean enable80211k, boolean rateLimitEnable, |     void configureCustomOptionsForSsid(OvsdbClient ovsdbClient, boolean enable80211k, boolean rateLimitEnable, | ||||||
|             int ssidDlLimit, int ssidUlLimit, int clientDlLimit, int clientUlLimit, int rtsCtsThreshold, |             int ssidDlLimit, int ssidUlLimit, int clientDlLimit, int clientUlLimit, int rtsCtsThreshold, | ||||||
| @@ -276,7 +275,7 @@ public class OvsdbSsidConfig extends OvsdbDaoBase { | |||||||
|         configureCustomOptionsForDtimFragAnd80211k(enable80211k, dtimPeriod, fragThresholdBytes, customOptions); |         configureCustomOptionsForDtimFragAnd80211k(enable80211k, dtimPeriod, fragThresholdBytes, customOptions); | ||||||
|  |  | ||||||
|         configureCustomOptionsForDynamicVlan(dynamicVlan, customOptions); |         configureCustomOptionsForDynamicVlan(dynamicVlan, customOptions); | ||||||
|          |  | ||||||
|         @SuppressWarnings("unchecked") |         @SuppressWarnings("unchecked") | ||||||
|         com.vmware.ovsdb.protocol.operation.notation.Map<String, String> customMap = com.vmware.ovsdb.protocol.operation.notation.Map |         com.vmware.ovsdb.protocol.operation.notation.Map<String, String> customMap = com.vmware.ovsdb.protocol.operation.notation.Map | ||||||
|                 .of(customOptions); |                 .of(customOptions); | ||||||
| @@ -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(); | ||||||
|                     } |                     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Mike Hansen
					Mike Hansen