check probe requests

This commit is contained in:
PolynomialDivision 2017-12-19 18:56:12 +01:00
parent 488a49475d
commit 1375b7a736

View file

@ -337,7 +337,7 @@ static int handle_probe_req(struct blob_attr *msg) {
parse_to_probe_req(msg, &prob_req);
//insert_to_list(prob_req, 1);
//probe_entry tmp_probe =
insert_to_array(prob_req, 1);
probe_entry tmp_prob_req = insert_to_array(prob_req, 1);
// send probe via network
@ -348,12 +348,12 @@ static int handle_probe_req(struct blob_attr *msg) {
printf("[WC] Hostapd-Probe: %s : %s\n", "probe", str);
//print_probe_array();
/*
// deny access
if (!decide_function(&tmp_probe)) {
if (!decide_function(&tmp_prob_req)) {
//printf("MAC WILL BE DECLINED!!!\n");
return UBUS_STATUS_UNKNOWN_ERROR;
}*/
}
//printf("MAC WILL BE ACCEPDTED!!!\n");
return 0;
}