From de671722f734638f56c80cc598d66fd1fa3da1d3 Mon Sep 17 00:00:00 2001 From: Lynn Shi Date: Thu, 20 May 2021 11:58:38 -0400 Subject: [PATCH] WIFI-2408 Support UnassocClientRx setting in RadioUtilization based on Mqtt data --- .../external/integration/utils/MqttStatsPublisher.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opensync-ext-cloud/src/main/java/com/telecominfraproject/wlan/opensync/external/integration/utils/MqttStatsPublisher.java b/opensync-ext-cloud/src/main/java/com/telecominfraproject/wlan/opensync/external/integration/utils/MqttStatsPublisher.java index 876fc78..92a45c8 100644 --- a/opensync-ext-cloud/src/main/java/com/telecominfraproject/wlan/opensync/external/integration/utils/MqttStatsPublisher.java +++ b/opensync-ext-cloud/src/main/java/com/telecominfraproject/wlan/opensync/external/integration/utils/MqttStatsPublisher.java @@ -1136,6 +1136,10 @@ public class MqttStatsPublisher { int nonWifi = (busy - (busyTx + busyRx)) / totalDurationMs; checkIfOutOfBound("nonWifi", nonWifi, survey, totalDurationMs, busyTx, busyRx, busy, busySelf); radioUtil.setNonWifi(nonWifi); + + int pctOBSSAndSelfErrors = (busyRx - busySelf) / totalDurationMs; + checkIfOutOfBound("OBSSAndSelfErrors", pctOBSSAndSelfErrors, survey, totalDurationMs, busyTx, busyRx, busy, busySelf); + radioUtil.setUnassocClientRx(pctOBSSAndSelfErrors); radioType = OvsdbToWlanCloudTypeMappingUtility.getRadioTypeFromOpensyncStatsRadioBandType(survey.getBand()); if (radioType != RadioType.UNSUPPORTED) {