diff options
author | John Crispin <john@phrozen.org> | 2017-10-21 22:02:31 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2017-10-25 21:45:31 +0200 |
commit | 21e59ee3a2310ba1ec80b07614991318c014610e (patch) | |
tree | e739790c5cbfe23f2bde878ff0cb342b8b5215f7 /package/network/services/hostapd/src | |
parent | bca01fddb357147648ea00bde543542bd4f00bec (diff) | |
download | upstream-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.c | 6 |
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); } |