From 81f4813ce81a631858fbbbd541bcd3e72c735259 Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Sun, 16 Jul 2017 11:23:06 +0200 Subject: [PATCH] Enable network receiving probe request --- src/network/networksocket.c | 4 +++- src/utils/ubus.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/network/networksocket.c b/src/network/networksocket.c index f4915a5..cf30bdf 100644 --- a/src/network/networksocket.c +++ b/src/network/networksocket.c @@ -75,8 +75,10 @@ void *receive_msg(void *args) { printf("Parsed: '%s'\n", str); parse_to_probe_req(b.head, &prob_req); + insert_to_array(prob_req, 0); + // insert to list - insert_to_list(prob_req, 0); + //insert_to_list(prob_req, 0); } } diff --git a/src/utils/ubus.c b/src/utils/ubus.c index 4434ede..e07e87f 100644 --- a/src/utils/ubus.c +++ b/src/utils/ubus.c @@ -98,7 +98,7 @@ static int hostapd_notify(struct ubus_context *ctx, struct ubus_object *obj, // send probe via network char *str; str = blobmsg_format_json(msg, true); - //send_string(str); + send_string(str); printf("[WC] Hostapd-Probe: %s : %s\n", method, str);