mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2025-11-01 02:57:49 +00:00
WIFI-1947: OpensyncGateway - ApNode use only ON channel survey data
This commit is contained in:
@@ -1088,6 +1088,8 @@ public class MqttStatsPublisher {
|
||||
// populate it from report.survey
|
||||
for (Survey survey : report.getSurveyList()) {
|
||||
|
||||
if (survey.getSurveyType().equals(SurveyType.ON_CHANNEL)) { // only interested in ON_CHANNEL for this Metrics Report
|
||||
|
||||
int busyRx = 0; /* Rx = Rx_obss + Rx_errr (self and obss errors) */
|
||||
int busyTx = 0; /* Tx */
|
||||
int busySelf = 0; /* Rx_self (derived from succesful Rx frames) */
|
||||
@@ -1100,10 +1102,8 @@ public class MqttStatsPublisher {
|
||||
if (surveySample.getDurationMs() == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// we need to perform a weighted average here because the
|
||||
// samples are in percentage, and may be of different durations
|
||||
|
||||
busyTx += surveySample.getBusyTx() * surveySample.getDurationMs();
|
||||
busyRx += surveySample.getBusyRx() * surveySample.getDurationMs();
|
||||
busy += surveySample.getBusy() * surveySample.getDurationMs();
|
||||
@@ -1154,6 +1154,8 @@ public class MqttStatsPublisher {
|
||||
capacityDetails.put(radioType, cap);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
populateNetworkProbeMetrics(report, apNodeMetrics);
|
||||
|
||||
Reference in New Issue
Block a user