From 0d5c1bef11886d51f5c26d72280d039621e91814 Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Tue, 26 Dec 2017 23:46:44 +0100 Subject: [PATCH] remove debug --- src/storage/datastorage.c | 2 +- src/utils/ubus.c | 21 --------------------- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/src/storage/datastorage.c b/src/storage/datastorage.c index 8ff6693..e9636e3 100644 --- a/src/storage/datastorage.c +++ b/src/storage/datastorage.c @@ -429,7 +429,7 @@ void kick_clients(uint8_t bssid[], uint32_t id) { // here we should send a messsage to set the probe.count for all aps to the min that there is no delay between switching - + // the hearing map is full... send_set_probe(client_array[j].client_addr); del_client_interface(id, client_array[j].client_addr, 5, 1, 1000); diff --git a/src/utils/ubus.c b/src/utils/ubus.c index 0c8fd28..eb3d0b2 100644 --- a/src/utils/ubus.c +++ b/src/utils/ubus.c @@ -436,9 +436,6 @@ static int handle_set_probe(struct blob_attr *msg) { memcpy(client_entry.bssid_addr, notify_req.bssid_addr, sizeof(uint8_t) * ETH_ALEN ); memcpy(client_entry.client_addr, notify_req.client_addr, sizeof(uint8_t) * ETH_ALEN ); - printf("SETTING CLIENT MACS ENTRY!!!!\n"); - print_client_entry(client_entry); - probe_array_set_all_probe_count(client_entry.client_addr, dawn_metric.min_probe_count); return 0; @@ -984,24 +981,6 @@ static int get_hearing_map(struct ubus_context *ctx, struct ubus_object *obj, build_hearing_map_sort_client(&b); ubus_send_reply(ctx, req, b.head); - - int tmp_int_mac[ETH_ALEN]; - uint8_t tmp_mac[ETH_ALEN]; - sscanf("10:0B:A9:6D:33:90", MACSTR, STR2MAC(tmp_int_mac)); - for (int i = 0; i < ETH_ALEN; ++i) - tmp_mac[i] = (uint8_t) tmp_int_mac[i]; - - char mac_buf_target[20]; - sprintf(mac_buf_target, MACSTR, MAC2STR(tmp_mac)); - printf("SETTING PROBE COUNT OF MAC!!! %s\n", mac_buf_target); - - - - printf("SENDING MAP!\n"); - - - send_set_probe(tmp_mac); - return 0; }