Merge "Set max frequency as Max_Value of integer if it's negative."

This commit is contained in:
Treehugger Robot
2021-01-08 03:16:19 +00:00
committed by Gerrit Code Review

View File

@@ -43,6 +43,10 @@ public class FrontendInfo {
FrontendCapabilities frontendCap) {
mId = id;
mType = type;
// if max Frequency is negative, we set it as max value of the Integer.
if (maxFrequency < 0) {
maxFrequency = Integer.MAX_VALUE;
}
mFrequencyRange = new Range<>(minFrequency, maxFrequency);
mSymbolRateRange = new Range<>(minSymbolRate, maxSymbolRate);
mAcquireRange = acquireRange;