From 711885ad686ca5f8b4901334ab8f9e94a3ba7438 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 18 Sep 2024 14:47:31 +0200 Subject: [PATCH] hostapd: add ifname and vlan_id to sta-authorized notifications Signed-off-by: John Crispin --- package/network/services/hostapd/src/src/ap/ubus.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/network/services/hostapd/src/src/ap/ubus.c b/package/network/services/hostapd/src/src/ap/ubus.c index 2d9a48d368..d84d41f930 100644 --- a/package/network/services/hostapd/src/src/ap/ubus.c +++ b/package/network/services/hostapd/src/src/ap/ubus.c @@ -1870,6 +1870,9 @@ void hostapd_ubus_notify_authorized(struct hostapd_data *hapd, struct sta_info * blob_buf_init(&b, 0); blobmsg_add_macaddr(&b, "address", sta->addr); + if (sta->vlan_id) + blobmsg_add_u32(&b, "vlan", sta->vlan_id); + blobmsg_add_string(&b, "ifname", hapd->conf->iface); if (auth_alg) blobmsg_add_string(&b, "auth-alg", auth_alg); -- 2.30.2