WIFI-1395: Remove redundant field, allowedChannels, from ElementRadioConfiguration object

This commit is contained in:
Mike Hansen
2021-01-28 11:41:21 -05:00
parent cea96f49f3
commit ef31af48db

View File

@@ -1231,17 +1231,6 @@ public class OpensyncExternalIntegrationCloud implements OpensyncExternalIntegra
continue; continue;
} }
if (radioState.getAllowedChannels() != null) {
if (apElementConfiguration.getRadioMap().containsKey(radioState.getFreqBand())
&& apElementConfiguration.getRadioMap().get(radioState.getFreqBand()) != null) {
apElementConfiguration.getRadioMap().get(radioState.getFreqBand())
.setAllowedChannels(new ArrayList<>(radioState.getAllowedChannels()));
LOG.debug("Updated AllowedChannels from Wifi_Radio_State table change for AP {}", apId);
}
}
if (radioState.getChannels() != null) { if (radioState.getChannels() != null) {
if (apElementConfiguration.getRadioMap().containsKey(radioState.getFreqBand()) if (apElementConfiguration.getRadioMap().containsKey(radioState.getFreqBand())
@@ -1296,8 +1285,6 @@ public class OpensyncExternalIntegrationCloud implements OpensyncExternalIntegra
apElementConfiguration.getRadioMap().get(radioState.getFreqBand()) apElementConfiguration.getRadioMap().get(radioState.getFreqBand())
.setAllowedChannelsPowerLevels(channelPowerLevels); .setAllowedChannelsPowerLevels(channelPowerLevels);
} }
apElementConfiguration.getRadioMap().get(radioState.getFreqBand())
.setAllowedChannels(new ArrayList<>(radioState.getAllowedChannels()));
LOG.debug("Updated AllowedChannels from Wifi_Radio_State table change for AP {}", apId); LOG.debug("Updated AllowedChannels from Wifi_Radio_State table change for AP {}", apId);
} }