Bug fixes

This commit is contained in:
PolynomialDivision 2017-07-29 16:26:53 +02:00
parent 88fef898b4
commit 16dfa3238e
2 changed files with 5 additions and 10 deletions

View file

@ -346,8 +346,6 @@ probe_entry insert_to_array(probe_entry entry, int inc_counter) {
if(mac_is_equal(entry.bssid_addr,tmp.bssid_addr)
&& mac_is_equal(entry.client_addr, tmp.client_addr)){
entry.counter = tmp.counter;
printf("MAC IS EQUAL EUQAL AND CORRECT!\n");
printf("TMP ENTRY IS NOT NULL!!!!!!!!!!!!!!!!!!!!!!\nCounter: %d\n", tmp.counter);
}
if (inc_counter) {

View file

@ -194,19 +194,13 @@ static int hostapd_notify(struct ubus_context *ctx, struct ubus_object *obj,
send_string(str);
printf("[WC] Hostapd-Probe: %s : %s\n", method, str);
printf("[WC] ParsED Probe Request\n");
//print_array();
//print_array();
// sleep(2); // sleep for 2s
print_array();
// deny access
if (!decide_function(&tmp_probe)) {
printf("MAC WILL BE DECLINED!!!");
return UBUS_STATUS_UNKNOWN_ERROR;
return UBUS_STATUS_UNKNOWN_ERROR;
}
printf("MAC WILL BE ACCEPDTED!!!");
@ -394,6 +388,9 @@ int parse_to_clients(struct blob_attr *msg, int do_kick) {
}
static void ubus_get_clients_cb(struct ubus_request *req, int type, struct blob_attr *msg) {
printf("[GET CLIENTS] Peer: %08x \n", req->peer);
if (!msg)
return;