[openwrt/openwrt] hostapd: add the ifname to ubus events

LEDE Commits lede-commits at lists.infradead.org
Wed Oct 2 06:20:26 PDT 2024


blogic pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/dc48732ea7be380ba44b806ffb1c857e6c2c2a48

commit dc48732ea7be380ba44b806ffb1c857e6c2c2a48
Author: John Crispin <john at phrozen.org>
AuthorDate: Wed Sep 18 14:43:26 2024 +0200

    hostapd: add the ifname to ubus events
    
    Signed-off-by: John Crispin <john at phrozen.org>
---
 package/network/services/hostapd/src/src/ap/ubus.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/network/services/hostapd/src/src/ap/ubus.c b/package/network/services/hostapd/src/src/ap/ubus.c
index f21516fc3c..2d9a48d368 100644
--- a/package/network/services/hostapd/src/src/ap/ubus.c
+++ b/package/network/services/hostapd/src/src/ap/ubus.c
@@ -1783,6 +1783,7 @@ int hostapd_ubus_handle_event(struct hostapd_data *hapd, struct hostapd_ubus_req
 
 	blob_buf_init(&b, 0);
 	blobmsg_add_macaddr(&b, "address", addr);
+	blobmsg_add_string(&b, "ifname", hapd->conf->iface);
 	if (req->mgmt_frame)
 		blobmsg_add_macaddr(&b, "target", req->mgmt_frame->da);
 	if (req->ssi_signal)




More information about the lede-commits mailing list