aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-04-23 18:35:50 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-04-23 18:35:50 +0000
commitd7908e02b51288d6c3a720bc2e74f053e3dd7334 (patch)
tree315dd12e2faa45482ece9d03363c595d045f45f1
parente119a8a107ed0fe0f3f9817566959fc95b027a05 (diff)
downloadupstream-d7908e02b51288d6c3a720bc2e74f053e3dd7334.tar.gz
upstream-d7908e02b51288d6c3a720bc2e74f053e3dd7334.tar.bz2
upstream-d7908e02b51288d6c3a720bc2e74f053e3dd7334.zip
hostapd: return the frequency to some ubus calls to make integration easier
SVN-Revision: 36410
-rw-r--r--package/network/services/hostapd/patches/700-ubus_support.patch4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/network/services/hostapd/patches/700-ubus_support.patch b/package/network/services/hostapd/patches/700-ubus_support.patch
index 39351ca9e7..b32aefc672 100644
--- a/package/network/services/hostapd/patches/700-ubus_support.patch
+++ b/package/network/services/hostapd/patches/700-ubus_support.patch
@@ -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>
@@ -180,6 +180,7 @@
+ };
+
+ 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;
@@ -383,6 +384,7 @@
+ 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;