hostapd: return the frequency to some ubus calls to make integration easier
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 23 Apr 2013 18:35:50 +0000 (18:35 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 23 Apr 2013 18:35:50 +0000 (18:35 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36410 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/network/services/hostapd/patches/700-ubus_support.patch

index 39351ca..b32aefc 100644 (file)
@@ -40,7 +40,7 @@
        struct hostapd_data **bss;
 --- /dev/null
 +++ b/src/ap/ubus.c
-@@ -0,0 +1,354 @@
+@@ -0,0 +1,356 @@
 +/*
 + * hostapd / ubus support
 + * Copyright (c) 2013, Felix Fietkau <nbd@openwrt.org>
 +      };
 +
 +      blob_buf_init(&b, 0);
++      blobmsg_add_u32(&b, "freq", hapd->iface->freq);
 +      list = blobmsg_open_table(&b, "clients");
 +      for (sta = hapd->sta_list; sta; sta = sta->next) {
 +              int i;
 +              blobmsg_add_macaddr(&b, "target", req->mgmt_frame->da);
 +      if (req->frame_info)
 +              blobmsg_add_u32(&b, "signal", req->frame_info->ssi_signal);
++      blobmsg_add_u32(&b, "freq", hapd->iface->freq);
 +
 +      if (ubus_notify_async(ctx, &hapd->ubus.obj, type, b.head, &ureq.nreq))
 +              return 0;