From 0320ff7c12b8deff65e948418282c4aa732fb480 Mon Sep 17 00:00:00 2001
From: Andrei Ovcharenko
Date: Mon, 5 Oct 2026 18:38:13 +0300
Subject: [PATCH] prplmesh: provide the device friendly name for UCI
Implement the FriendlyName accessor required by the 6.2.0 agent using
the runtime hostname, with a model-name fallback.
Signed-off-by: Andrei Ovcharenko
---
net/prplmesh/patches/100-stock-platform.patch | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/net/prplmesh/patches/100-stock-platform.patch b/net/prplmesh/patches/100-stock-platform.patch
index f05eb59ea5..9ca9c58c7a 100644
--- a/net/prplmesh/patches/100-stock-platform.patch
+++ b/net/prplmesh/patches/100-stock-platform.patch
@@ -299,10 +299,18 @@ Signed-off-by: Andrei Ovcharenko
}
bool cfg_get_guest_bridge_iface(std::string &bridge_iface)
-@@ -1138,5 +1169,64 @@ bool cfg_get_traffic_separation_guest_vi
+@@ -1138,5 +1169,72 @@ bool cfg_get_traffic_separation_guest_vi
bool cfg_commit_changes() { return uci_commit_changes("prplmesh"); }
++bool get_friendly_name(std::string &friendly_name)
++{
++ if (!read_device_info_file("/proc/sys/kernel/hostname", friendly_name)) {
++ return get_model_name(friendly_name);
++ }
++ return true;
++}
++
+bool get_serial_number(std::string &serial_number)
+{
+ if (!read_device_info_file("/sys/firmware/devicetree/base/serial-number", serial_number) &&