projects
/
lede-git
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
target/ath25: make sure ethernet gets an initial IP
[lede-git/.git]
/
package
/
network
/
services
/
hostapd
/
src
/
src
/
ap
/
ubus.c
diff --git
a/package/network/services/hostapd/src/src/ap/ubus.c
b/package/network/services/hostapd/src/src/ap/ubus.c
index bc773930d46e1df9394e8856dde7c110534540c6..beb4388f7c5af2d89acb1a5cc52b0facaded6029 100644
(file)
--- a/
package/network/services/hostapd/src/src/ap/ubus.c
+++ b/
package/network/services/hostapd/src/src/ap/ubus.c
@@
-743,18
+743,14
@@
int hostapd_ubus_handle_event(struct hostapd_data *hapd, struct hostapd_ubus_req
void hostapd_ubus_notify(struct hostapd_data *hapd, const char *type, const u8 *addr)
{
void hostapd_ubus_notify(struct hostapd_data *hapd, const char *type, const u8 *addr)
{
- char mac[18];
-
if (!hapd->ubus.obj.has_subscribers)
return;
if (!addr)
return;
if (!hapd->ubus.obj.has_subscribers)
return;
if (!addr)
return;
- snprintf(mac, sizeof(mac), MACSTR, MAC2STR(addr));
-
blob_buf_init(&b, 0);
blob_buf_init(&b, 0);
- blobmsg_add_macaddr(&b, "address",
mac
);
+ blobmsg_add_macaddr(&b, "address",
addr
);
ubus_notify(ctx, &hapd->ubus.obj, type, b.head, -1);
}
ubus_notify(ctx, &hapd->ubus.obj, type, b.head, -1);
}