reset old signal value
This commit is contained in:
parent
4f81684f7d
commit
a2bc53241c
|
@ -70,7 +70,9 @@ void __client_setvalues(struct wifi_client *client, struct hostapd_client *hclie
|
||||||
}
|
}
|
||||||
if (hclient->freq > WIFI_CLIENT_FREQ_THREASHOLD) {
|
if (hclient->freq > WIFI_CLIENT_FREQ_THREASHOLD) {
|
||||||
client->signal_highfreq = hclient->ssi_signal;
|
client->signal_highfreq = hclient->ssi_signal;
|
||||||
|
client->signal_lowfreq = 0;
|
||||||
}else{
|
}else{
|
||||||
|
client->signal_highfreq = 0;
|
||||||
client->signal_lowfreq = hclient->ssi_signal;
|
client->signal_lowfreq = hclient->ssi_signal;
|
||||||
}
|
}
|
||||||
log_debug("\n");
|
log_debug("\n");
|
||||||
|
@ -94,11 +96,9 @@ struct wifi_client *__get_client(struct hostapd_client *hclient){
|
||||||
memcpy(client->addr, hclient->address, sizeof(client->addr));
|
memcpy(client->addr, hclient->address, sizeof(client->addr));
|
||||||
client->try_probe = 0;
|
client->try_probe = 0;
|
||||||
client->try_auth = 0;
|
client->try_auth = 0;
|
||||||
client->connected = 0;
|
client->connected = false;
|
||||||
client->authed = 0;
|
client->authed = false;
|
||||||
client->freq_highest = 0;
|
client->freq_highest = 0;
|
||||||
client->signal_lowfreq = 0;
|
|
||||||
client->signal_highfreq = 0;
|
|
||||||
__client_setvalues(client, hclient);
|
__client_setvalues(client, hclient);
|
||||||
client->avl.key = client->addr;
|
client->avl.key = client->addr;
|
||||||
log_debug("wifi_clients.__get_client("MACSTR"): add client to mem\n", MAC2STR(hclient->address));
|
log_debug("wifi_clients.__get_client("MACSTR"): add client to mem\n", MAC2STR(hclient->address));
|
||||||
|
|
Loading…
Reference in New Issue