Package com.facebook.openwifi.rrm
Class DeviceConfig
- java.lang.Object
-
- com.facebook.openwifi.rrm.DeviceConfig
-
public class DeviceConfig extends Object
AP configuration model.Implementation notes:
- Fields must be nullable (no primitives, use boxed types instead).
- This currently does not support merging of nested structures.
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,List<Integer>>allowedChannelsThe list of allowed channels, or null to allow all (map from band to channel)Map<String,List<Integer>>allowedChannelWidthsThe list of allowed channel widths, or null to allow all (map from band to channel)Map<String,List<Integer>>allowedTxPowersThe list of allowed tx powers, or null to allow all (map from band to tx power)Map<String,Integer>autoChannelsThe RRM-assigned channels to use (map from radio to channel)Map<String,Integer>autoTxPowersThe RRM-assigned tx powers to use (map from band to tx power)IntegerboundaryThe length of a square/cube for the target area (seelocation)BooleanenableConfigWhether pushing device config is enabledBooleanenableRRMWhether RRM algorithms are enabledBooleanenableWifiScanWhether automatic wifi scans are enabledList<Integer>locationThe AP location either 2D or 3DRRMSchedulescheduleThe RRM schedule (if enabled), only applied at the zone or network layerMap<String,Integer>userChannelsThe user-assigned channels to use, overriding "autoChannels" (map from band to channel)Map<String,Integer>userTxPowersThe user-assigned tx powers to use, overriding "autoTxPowers"
-
Constructor Summary
Constructors Constructor Description DeviceConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(DeviceConfig override)Merge all non-null public fields of the given object into this object (via reflection).static DeviceConfigcreateDefault()Create the default config.booleanisEmpty()Return true if all public instance fields are null (via reflection).
-
-
-
Field Detail
-
enableRRM
public Boolean enableRRM
Whether RRM algorithms are enabled
-
schedule
public RRMSchedule schedule
The RRM schedule (if enabled), only applied at the zone or network layer
-
enableConfig
public Boolean enableConfig
Whether pushing device config is enabled
-
enableWifiScan
public Boolean enableWifiScan
Whether automatic wifi scans are enabled
-
allowedChannels
public Map<String,List<Integer>> allowedChannels
The list of allowed channels, or null to allow all (map from band to channel)
-
allowedChannelWidths
public Map<String,List<Integer>> allowedChannelWidths
The list of allowed channel widths, or null to allow all (map from band to channel)
-
autoChannels
public Map<String,Integer> autoChannels
The RRM-assigned channels to use (map from radio to channel)
-
userChannels
public Map<String,Integer> userChannels
The user-assigned channels to use, overriding "autoChannels" (map from band to channel)
-
allowedTxPowers
public Map<String,List<Integer>> allowedTxPowers
The list of allowed tx powers, or null to allow all (map from band to tx power)
-
autoTxPowers
public Map<String,Integer> autoTxPowers
The RRM-assigned tx powers to use (map from band to tx power)
-
-
Method Detail
-
createDefault
public static DeviceConfig createDefault()
Create the default config.
-
isEmpty
public boolean isEmpty()
Return true if all public instance fields are null (via reflection).
-
apply
public void apply(DeviceConfig override)
Merge all non-null public fields of the given object into this object (via reflection).
-
-