mirror of
				https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
				synced 2025-11-04 04:27:59 +00:00 
			
		
		
		
	WIFI-1397 Cloud SDK: inconsistent treatment of active/manual/auto/backup channels
This commit is contained in:
		@@ -1871,7 +1871,10 @@ public class OvsdbDao {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            ElementRadioConfiguration elementRadioConfig = apElementConfiguration.getRadioMap().get(radioType);
 | 
					            ElementRadioConfiguration elementRadioConfig = apElementConfiguration.getRadioMap().get(radioType);
 | 
				
			||||||
            RfElementConfiguration rfElementConfig = rfConfig.getRfConfig(radioType);
 | 
					            RfElementConfiguration rfElementConfig = rfConfig.getRfConfig(radioType);
 | 
				
			||||||
            int channel = elementRadioConfig.getChannelNumber();
 | 
					            boolean autoChannelSelection = rfElementConfig.getAutoChannelSelection();
 | 
				
			||||||
 | 
					            int channel = elementRadioConfig.getActiveChannel(autoChannelSelection);
 | 
				
			||||||
 | 
					            LOG.debug("configureWifiRadios autoChannelSelection {} activeChannel {} getChannelNumber {} ",
 | 
				
			||||||
 | 
					            		autoChannelSelection, channel, elementRadioConfig.getChannelNumber());
 | 
				
			||||||
            ChannelBandwidth bandwidth = rfElementConfig.getChannelBandwidth();
 | 
					            ChannelBandwidth bandwidth = rfElementConfig.getChannelBandwidth();
 | 
				
			||||||
            String ht_mode = null;
 | 
					            String ht_mode = null;
 | 
				
			||||||
            switch (bandwidth) {
 | 
					            switch (bandwidth) {
 | 
				
			||||||
@@ -1893,7 +1896,6 @@ public class OvsdbDao {
 | 
				
			|||||||
            default:
 | 
					            default:
 | 
				
			||||||
                ht_mode = null;
 | 
					                ht_mode = null;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            rfElementConfig.getAutoChannelSelection();
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            RadioConfiguration radioConfig = apElementConfiguration.getAdvancedRadioMap().get(radioType);
 | 
					            RadioConfiguration radioConfig = apElementConfiguration.getAdvancedRadioMap().get(radioType);
 | 
				
			||||||
            int beaconInterval = rfElementConfig.getBeaconInterval();
 | 
					            int beaconInterval = rfElementConfig.getBeaconInterval();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user