summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin2024-09-18 12:47:31 +0000
committerJohn Crispin2024-10-02 13:19:27 +0000
commit711885ad686ca5f8b4901334ab8f9e94a3ba7438 (patch)
treedd36448606e8b997c81b72a65237ce97e12003eb
parentdc48732ea7be380ba44b806ffb1c857e6c2c2a48 (diff)
downloadopenwrt-711885ad686ca5f8b4901334ab8f9e94a3ba7438.tar.gz
hostapd: add ifname and vlan_id to sta-authorized notifications
Signed-off-by: John Crispin <john@phrozen.org>
-rw-r--r--package/network/services/hostapd/src/src/ap/ubus.c3
1 files changed, 3 insertions, 0 deletions
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);