mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-30 16:14:12 +00:00
hostapd: add ifname to generic ubus notify code
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
711885ad68
commit
dd62f7659b
@ -1858,6 +1858,7 @@ void hostapd_ubus_notify(struct hostapd_data *hapd, const char *type, const u8 *
|
|||||||
|
|
||||||
blob_buf_init(&b, 0);
|
blob_buf_init(&b, 0);
|
||||||
blobmsg_add_macaddr(&b, "address", addr);
|
blobmsg_add_macaddr(&b, "address", addr);
|
||||||
|
blobmsg_add_string(&b, "ifname", hapd->conf->iface);
|
||||||
|
|
||||||
ubus_notify(ctx, &hapd->ubus.obj, type, b.head, -1);
|
ubus_notify(ctx, &hapd->ubus.obj, type, b.head, -1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user