mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
check probe requests
This commit is contained in:
parent
488a49475d
commit
1375b7a736
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue