aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd/src
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2017-10-21 22:02:31 +0200
committerJohn Crispin <john@phrozen.org>2017-10-25 21:45:31 +0200
commit21e59ee3a2310ba1ec80b07614991318c014610e (patch)
treee739790c5cbfe23f2bde878ff0cb342b8b5215f7 /package/network/services/hostapd/src
parentbca01fddb357147648ea00bde543542bd4f00bec (diff)
downloadupstream-21e59ee3a2310ba1ec80b07614991318c014610e.tar.gz
upstream-21e59ee3a2310ba1ec80b07614991318c014610e.tar.bz2
upstream-21e59ee3a2310ba1ec80b07614991318c014610e.zip
hostapd: fix up ubus support
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'package/network/services/hostapd/src')
-rw-r--r--package/network/services/hostapd/src/src/ap/ubus.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/package/network/services/hostapd/src/src/ap/ubus.c b/package/network/services/hostapd/src/src/ap/ubus.c
index bc773930d4..beb4388f7c 100644
--- 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)
{
- char mac[18];
-
if (!hapd->ubus.obj.has_subscribers)
return;
if (!addr)
return;
- snprintf(mac, sizeof(mac), MACSTR, MAC2STR(addr));
-
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);
}