blob: 02553df952e641f9a572033c9aa36167d34f7fba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
From 178d8d572457c4347f04fe106570781e3901fe0c Mon Sep 17 00:00:00 2001
From: Andrei Ovcharenko <a@krot.name>
Date: Tue, 28 Jul 2026 22:45:00 +0300
Subject: [PATCH] controller: skip op class DM cleanup without a data model
Stock OpenWrt builds prplMesh without NBAPI, leaving radio data model
paths empty. The operating channel report handler already treats that
state as valid, but the follow-up cleanup still tries to update five
empty CurrentOperatingClassProfile paths per radio. This floods the
controller log even though the operational channel is updated.
Mirror the existing guard in handle_current_op_class and skip the
data-model-only cleanup when the radio has no data model path.
The whole series is publicly reviewable at
https://gitlab.com/kreout/prpl-mesh-mercusys/-/merge_requests/1; the
upstream GitLab only accepts merge requests from project members, so
the upstream submission itself goes through the prpl Foundation Jira.
Signed-off-by: Andrei Ovcharenko <a@krot.name>
---
controller/src/beerocks/master/db/db.cpp | 4 ++++
1 file changed, 4 insertions(+)
--- a/controller/src/beerocks/master/db/db.cpp
+++ b/controller/src/beerocks/master/db/db.cpp
@@ -7087,6 +7087,10 @@ bool db::dm_clear_empty_current_op_class
return false;
}
+ if (radio->dm_path.empty()) {
+ return true;
+ }
+
for (int i = 0; i < Agent::operatingClassProfileIndex::OPERATING_CLASS_MAX_BW; i++) {
if (radio->current_operating_class_profile[i].op_class == 0) {
set_dm_current_op_class(radio_mac, i, 0, 0, 0);
|