From 4f81684f7d7a4d4fb3ea83464fad038465dc3bd5 Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Tue, 24 Jul 2018 14:05:21 +0200 Subject: [PATCH] fix client freq not found --- wireless/wifictld/src/ubus_events.c | 4 ++-- wireless/wifictld/src/wifi_clients.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wireless/wifictld/src/ubus_events.c b/wireless/wifictld/src/ubus_events.c index 860dbad..357984b 100644 --- a/wireless/wifictld/src/ubus_events.c +++ b/wireless/wifictld/src/ubus_events.c @@ -88,8 +88,8 @@ static int receive_notify(struct ubus_context *ctx, struct ubus_object *obj, str struct hostapd_client hclient = { .method = method, .auth = false, - .freq = -1, - .ssi_signal = -1, + .freq = 0, + .ssi_signal = 0, }; struct blob_attr *pos; diff --git a/wireless/wifictld/src/wifi_clients.c b/wireless/wifictld/src/wifi_clients.c index cc05be3..5b300a1 100644 --- a/wireless/wifictld/src/wifi_clients.c +++ b/wireless/wifictld/src/wifi_clients.c @@ -95,6 +95,7 @@ struct wifi_client *__get_client(struct hostapd_client *hclient){ client->try_probe = 0; client->try_auth = 0; client->connected = 0; + client->authed = 0; client->freq_highest = 0; client->signal_lowfreq = 0; client->signal_highfreq = 0;