mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-18 01:41:24 +00:00
35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
From 7abb5379916e94316158ba508f56cc6248dbf933 Mon Sep 17 00:00:00 2001
|
|
From: John Crispin <john@phrozen.org>
|
|
Date: Wed, 29 Jul 2020 12:30:42 +0200
|
|
Subject: [PATCH] netifd: add interface to status messages
|
|
|
|
Add the interface name to the status messages. Otherwise we cannot identify the content.
|
|
|
|
Signed-off-by: John Crispin <john@phrozen.org>
|
|
---
|
|
.../config/netifd/patches/0103-ubus-iface.patch | 12 ++++++++++++
|
|
1 file changed, 12 insertions(+)
|
|
create mode 100644 package/network/config/netifd/patches/0103-ubus-iface.patch
|
|
|
|
diff --git a/package/network/config/netifd/patches/0103-ubus-iface.patch b/package/network/config/netifd/patches/0103-ubus-iface.patch
|
|
new file mode 100644
|
|
index 0000000000..f11477217a
|
|
--- /dev/null
|
|
+++ b/package/network/config/netifd/patches/0103-ubus-iface.patch
|
|
@@ -0,0 +1,12 @@
|
|
+Index: netifd-2019-08-05-5e02f944/ubus.c
|
|
+===================================================================
|
|
+--- netifd-2019-08-05-5e02f944.orig/ubus.c
|
|
++++ netifd-2019-08-05-5e02f944/ubus.c
|
|
+@@ -825,6 +825,7 @@ netifd_handle_status(struct ubus_context
|
|
+ struct interface *iface = container_of(obj, struct interface, ubus);
|
|
+
|
|
+ blob_buf_init(&b, 0);
|
|
++ blobmsg_add_string(&b, "interface", iface->name);
|
|
+ netifd_dump_status(iface);
|
|
+ ubus_send_reply(ctx, req, b.head);
|
|
+
|
|
--
|
|
2.25.1
|
|
|