enable debugging

This commit is contained in:
Martin/Geno 2018-07-19 22:27:39 +02:00
parent 6f3187767d
commit 901fc3f838
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
3 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ define Package/wifictld
$(call Package/wifictld/Default)
TITLE+= (full)
VARIANT:=full
TARGET_CFLAGS += -DDEBUG -ggdb3
TARGET_CFLAGS += -DDEBUG -g3 -ggdb3
endef
define Package/wifictld-mini

View File

@ -2,7 +2,7 @@
all: hostapd wifictld
CC = gcc
CFLAGS = -Wall
CFLAGS = -Wall -Wextra
LDFLAGS = -lubox -lubus
DEPS = $(wildcard *.h)

View File

@ -14,7 +14,7 @@ int client_signal_threashold = -75;
int clean_every = 600; //in ms = 10min
int clean_older_then = 3600; //in sec = 1h
struct avl_tree clients_by_addr;
struct avl_tree clients_by_addr = {};
void clean_cbhandler(struct uloop_timeout *t)
@ -70,7 +70,7 @@ struct wifi_client *__get_client(const u8 *address){
return client;
}
log_debug("wifi_clients.__get_client("MACSTR"): gen new client\n", MAC2STR(address));
client = calloc(sizeof(*client), 1);
client = malloc(sizeof(*client));
memcpy(client->addr, address, sizeof(client->addr));
client->try_probe = 0;
client->try_auth = 0;