diff --git a/src/storage/datastorage.c b/src/storage/datastorage.c index bfee2a1..a92f7f2 100644 --- a/src/storage/datastorage.c +++ b/src/storage/datastorage.c @@ -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) { diff --git a/src/utils/ubus.c b/src/utils/ubus.c index ac21e21..9a91f66 100644 --- a/src/utils/ubus.c +++ b/src/utils/ubus.c @@ -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;