projects
/
openwrt
/
staging
/
xback.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc48732
)
hostapd: add ifname and vlan_id to sta-authorized notifications
author
John Crispin
<john@phrozen.org>
Wed, 18 Sep 2024 12:47:31 +0000
(14:47 +0200)
committer
John Crispin
<john@phrozen.org>
Wed, 2 Oct 2024 13:19:27 +0000
(15:19 +0200)
Signed-off-by: John Crispin <john@phrozen.org>
package/network/services/hostapd/src/src/ap/ubus.c
patch
|
blob
|
history
diff --git
a/package/network/services/hostapd/src/src/ap/ubus.c
b/package/network/services/hostapd/src/src/ap/ubus.c
index 2d9a48d368462aab14d8a62b00a964d350a10fe1..d84d41f930d54841a32944ab27c9ec3dcbc94311 100644
(file)
--- 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);