Enable network receiving probe request

This commit is contained in:
PolynomialDivision 2017-07-16 11:23:06 +02:00
parent a1d488b633
commit 81f4813ce8
2 changed files with 4 additions and 2 deletions

View file

@ -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);
}
}

View file

@ -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);