hostapd: add the ifname to ubus events
authorJohn Crispin <john@phrozen.org>
Wed, 18 Sep 2024 12:43:26 +0000 (14:43 +0200)
committerJohn Crispin <john@phrozen.org>
Wed, 2 Oct 2024 13:19:21 +0000 (15:19 +0200)
Signed-off-by: John Crispin <john@phrozen.org>
package/network/services/hostapd/src/src/ap/ubus.c

index f21516fc3c78ac976008bae2032436929270f6fe..2d9a48d368462aab14d8a62b00a964d350a10fe1 100644 (file)
@@ -1783,6 +1783,7 @@ int hostapd_ubus_handle_event(struct hostapd_data *hapd, struct hostapd_ubus_req
 
        blob_buf_init(&b, 0);
        blobmsg_add_macaddr(&b, "address", addr);
+       blobmsg_add_string(&b, "ifname", hapd->conf->iface);
        if (req->mgmt_frame)
                blobmsg_add_macaddr(&b, "target", req->mgmt_frame->da);
        if (req->ssi_signal)