mirror of
				https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
				synced 2025-11-03 20:17:53 +00:00 
			
		
		
		
	WIFI-830: Cloud BE: support configuration of fragmentation threshold
For each RadioType of the AP the value of rtsCtsThreshold is applied to the rts_threshold in Wifi_VIF_Config custom_options map.
This commit is contained in:
		@@ -2383,7 +2383,7 @@ public class OvsdbDao {
 | 
				
			|||||||
            int keyRefresh, boolean uapsdEnabled, boolean apBridge, NetworkForwardMode networkForwardMode,
 | 
					            int keyRefresh, boolean uapsdEnabled, boolean apBridge, NetworkForwardMode networkForwardMode,
 | 
				
			||||||
            String gateway, String inet, Map<String, String> dns, String ipAssignScheme, List<MacAddress> macBlockList,
 | 
					            String gateway, String inet, Map<String, String> dns, String ipAssignScheme, List<MacAddress> macBlockList,
 | 
				
			||||||
            boolean rateLimitEnable, int ssidDlLimit, int ssidUlLimit, int clientDlLimit, int clientUlLimit,
 | 
					            boolean rateLimitEnable, int ssidDlLimit, int ssidUlLimit, int clientDlLimit, int clientUlLimit,
 | 
				
			||||||
            Map<String, String> captiveMap, List<String> walledGardenAllowlist,
 | 
					            int rtsCtsThreshold, Map<String, String> captiveMap, List<String> walledGardenAllowlist,
 | 
				
			||||||
            Map<Short, Set<String>> bonjourServiceMap) {
 | 
					            Map<Short, Set<String>> bonjourServiceMap) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        List<Operation> operations = new ArrayList<>();
 | 
					        List<Operation> operations = new ArrayList<>();
 | 
				
			||||||
@@ -2484,6 +2484,10 @@ public class OvsdbDao {
 | 
				
			|||||||
            customOptions.put("ssid_dl_limit", String.valueOf(ssidDlLimit * 1000));
 | 
					            customOptions.put("ssid_dl_limit", String.valueOf(ssidDlLimit * 1000));
 | 
				
			||||||
            customOptions.put("client_dl_limit", String.valueOf(clientDlLimit * 1000));
 | 
					            customOptions.put("client_dl_limit", String.valueOf(clientDlLimit * 1000));
 | 
				
			||||||
            customOptions.put("client_ul_limit", String.valueOf(clientUlLimit * 1000));
 | 
					            customOptions.put("client_ul_limit", String.valueOf(clientUlLimit * 1000));
 | 
				
			||||||
 | 
					            if (rtsCtsThreshold > 0) {
 | 
				
			||||||
 | 
					                customOptions.put("rts_threshold", String.valueOf(rtsCtsThreshold));
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (enable80211k) {
 | 
					            if (enable80211k) {
 | 
				
			||||||
                customOptions.put("ieee80211k", String.valueOf(1));
 | 
					                customOptions.put("ieee80211k", String.valueOf(1));
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
@@ -2669,6 +2673,7 @@ public class OvsdbDao {
 | 
				
			|||||||
            SsidConfiguration ssidConfig = (SsidConfiguration) ssidProfile.getDetails();
 | 
					            SsidConfiguration ssidConfig = (SsidConfiguration) ssidProfile.getDetails();
 | 
				
			||||||
            ApElementConfiguration apElementConfig = (ApElementConfiguration) opensyncApConfig.getCustomerEquipment()
 | 
					            ApElementConfiguration apElementConfig = (ApElementConfiguration) opensyncApConfig.getCustomerEquipment()
 | 
				
			||||||
                    .getDetails();
 | 
					                    .getDetails();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            for (RadioType radioType : ssidConfig.getAppliedRadios()) {
 | 
					            for (RadioType radioType : ssidConfig.getAppliedRadios()) {
 | 
				
			||||||
                // Still put profiles on disabled radios for now.
 | 
					                // Still put profiles on disabled radios for now.
 | 
				
			||||||
                //
 | 
					                //
 | 
				
			||||||
@@ -2764,11 +2769,14 @@ public class OvsdbDao {
 | 
				
			|||||||
                    ipAssignScheme = "dhcp";
 | 
					                    ipAssignScheme = "dhcp";
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                ElementRadioConfiguration elementRadioConfiguration = apElementConfig.getRadioMap().get(radioType);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                RadioConfiguration radioConfiguration = apElementConfig.getAdvancedRadioMap().get(radioType);
 | 
					                RadioConfiguration radioConfiguration = apElementConfig.getAdvancedRadioMap().get(radioType);
 | 
				
			||||||
                if (radioConfiguration == null) {
 | 
					                if (radioConfiguration == null) {
 | 
				
			||||||
                    continue; // don't have a radio of this kind in the map
 | 
					                    continue; // don't have a radio of this kind in the map
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					                int rtsCtsThreshold = radioConfiguration.getRtsCtsThreshold();
 | 
				
			||||||
                RadioMode radioMode = radioConfiguration.getRadioMode();
 | 
					                RadioMode radioMode = radioConfiguration.getRadioMode();
 | 
				
			||||||
                String minHwMode = "11n"; // min_hw_mode is 11ac, wifi 5, we can
 | 
					                String minHwMode = "11n"; // min_hw_mode is 11ac, wifi 5, we can
 | 
				
			||||||
                // also take ++ (11ax) but 2.4GHz only
 | 
					                // also take ++ (11ax) but 2.4GHz only
 | 
				
			||||||
@@ -2895,8 +2903,8 @@ public class OvsdbDao {
 | 
				
			|||||||
                            ssidConfig.getVlanId(), rrmEnabled, enable80211r, mobilityDomain, enable80211v,
 | 
					                            ssidConfig.getVlanId(), rrmEnabled, enable80211r, mobilityDomain, enable80211v,
 | 
				
			||||||
                            enable80211k, minHwMode, enabled, keyRefresh, uapsdEnabled, apBridge,
 | 
					                            enable80211k, minHwMode, enabled, keyRefresh, uapsdEnabled, apBridge,
 | 
				
			||||||
                            ssidConfig.getForwardMode(), gateway, inet, dns, ipAssignScheme, macBlockList,
 | 
					                            ssidConfig.getForwardMode(), gateway, inet, dns, ipAssignScheme, macBlockList,
 | 
				
			||||||
                            rateLimitEnable, ssidDlLimit, ssidUlLimit, clientDlLimit, clientUlLimit, captiveMap,
 | 
					                            rateLimitEnable, ssidDlLimit, ssidUlLimit, clientDlLimit, clientUlLimit, rtsCtsThreshold,
 | 
				
			||||||
                            walledGardenAllowlist, bonjourServiceMap);
 | 
					                            captiveMap, walledGardenAllowlist, bonjourServiceMap);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                } catch (IllegalStateException e) {
 | 
					                } catch (IllegalStateException e) {
 | 
				
			||||||
                    // could not provision this SSID, but still can go on
 | 
					                    // could not provision this SSID, but still can go on
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user