set default flags to true and fixed CQI
diff --git a/src/main/java/org.onosproject.xran/controller/XranControllerImpl.java b/src/main/java/org.onosproject.xran/controller/XranControllerImpl.java
index 8ef2ddc..242be00 100644
--- a/src/main/java/org.onosproject.xran/controller/XranControllerImpl.java
+++ b/src/main/java/org.onosproject.xran/controller/XranControllerImpl.java
@@ -789,11 +789,12 @@
RnibLink.LinkQuality quality = link.getQuality();
final double[] values = {0, 0, 0};
- int i = 1;
+ final int[] i = {1};
cqiHist.getBerInteger().forEach(value -> {
values[0] = Math.max(values[0], value.intValue());
- values[1] += i * value.intValue();
+ values[1] += i[0] * value.intValue();
values[2] += value.intValue();
+ i[0]++;
});
quality.setCQI(new RnibLink.LinkQuality.CQI(
diff --git a/xran-cfg.json b/xran-cfg.json
index c18a94c..c2500d2 100644
--- a/xran-cfg.json
+++ b/xran-cfg.json
@@ -28,8 +28,8 @@
"rx_signal_meas_report_interval_seconds": 7,
"xranc_cellconfigrequest_interval_seconds": 10,
"xranc_port": 7891,
- "admission_success": false,
- "bearer_success": false
+ "admission_success": true,
+ "bearer_success": true
}
}
}