fix client freq not found

This commit is contained in:
Martin/Geno 2018-07-24 14:05:21 +02:00
parent 3ebf12bfd0
commit 4f81684f7d
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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;