mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2025-11-19 19:35:05 +00:00
WIFI-792: RF Implementation (#11)
* Removing RF parameters from ApElementConfig, refactoring to RF profile
This commit is contained in:
@@ -1903,9 +1903,7 @@ public class OvsdbDao {
|
||||
ElementRadioConfiguration elementRadioConfig = apElementConfiguration.getRadioMap().get(radioType);
|
||||
RfElementConfiguration rfElementConfig = rfConfig.getRfConfig(radioType);
|
||||
int channel = elementRadioConfig.getChannelNumber();
|
||||
ChannelBandwidth bandwidth = elementRadioConfig.getChannelBandwidth();
|
||||
// ChannelBandwidth bandwidth =
|
||||
// rfElementConfig.getChannelBandwidth();
|
||||
ChannelBandwidth bandwidth = rfElementConfig.getChannelBandwidth();
|
||||
String ht_mode = null;
|
||||
switch (bandwidth) {
|
||||
case is20MHz:
|
||||
@@ -1926,11 +1924,10 @@ public class OvsdbDao {
|
||||
default:
|
||||
ht_mode = null;
|
||||
}
|
||||
elementRadioConfig.getAutoChannelSelection();
|
||||
rfElementConfig.getAutoChannelSelection();
|
||||
|
||||
RadioConfiguration radioConfig = apElementConfiguration.getAdvancedRadioMap().get(radioType);
|
||||
int beaconInterval = radioConfig.getBeaconInterval();
|
||||
// int beaconInterval = rfElementConfig.getBeaconInterval();
|
||||
int beaconInterval = rfElementConfig.getBeaconInterval();
|
||||
boolean enabled = radioConfig.getRadioAdminState().equals(StateSetting.enabled);
|
||||
|
||||
int txPower = 0;
|
||||
@@ -2966,8 +2963,7 @@ public class OvsdbDao {
|
||||
}
|
||||
RfElementConfiguration rfElementConfig = rfConfig.getRfConfig(radioType);
|
||||
int dtimPeriod = radioConfiguration.getDtimPeriod();
|
||||
int rtsCtsThreshold = radioConfiguration.getRtsCtsThreshold();
|
||||
// int rtsCtsThreshold = rfElementConfig.getRtsCtsThreshold();
|
||||
int rtsCtsThreshold = rfElementConfig.getRtsCtsThreshold();
|
||||
int fragThresholdBytes = radioConfiguration.getFragmentationThresholdBytes();
|
||||
RadioMode radioMode = radioConfiguration.getRadioMode();
|
||||
String minHwMode = "11n"; // min_hw_mode is 11ac, wifi 5, we can
|
||||
@@ -4840,7 +4836,6 @@ public class OvsdbDao {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void processNewChannelsRequest(OvsdbClient ovsdbClient, Map<RadioType, Integer> channelMap) {
|
||||
|
||||
LOG.info("OvsdbDao::processNewChannelsRequest {}", channelMap);
|
||||
@@ -4882,5 +4877,4 @@ public class OvsdbDao {
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user