mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-02-15 02:01:51 +00:00
datastorage: fixed use of wrong client search
This commit is contained in:
parent
36fe9998da
commit
be6f9df95c
1 changed files with 2 additions and 2 deletions
|
@ -766,13 +766,13 @@ client *client_array_get_client(const struct dawn_mac client_addr) {
|
||||||
//pthread_mutex_lock(&client_array_mutex);
|
//pthread_mutex_lock(&client_array_mutex);
|
||||||
|
|
||||||
#ifndef DAWN_CLIENT_SCAN_BC_ONLY
|
#ifndef DAWN_CLIENT_SCAN_BC_ONLY
|
||||||
|
client* ret = *client_find_first_c_entry(client_addr);
|
||||||
|
#else
|
||||||
client* ret = client_set_bc;
|
client* ret = client_set_bc;
|
||||||
while (ret != NULL && !mac_is_equal_bb(client_addr, ret->client_addr))
|
while (ret != NULL && !mac_is_equal_bb(client_addr, ret->client_addr))
|
||||||
{
|
{
|
||||||
ret = ret->next_entry_bc;
|
ret = ret->next_entry_bc;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
client* ret = *client_find_first_c_entry(client_addr);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (ret != NULL && !mac_is_equal_bb(client_addr, ret->client_addr))
|
if (ret != NULL && !mac_is_equal_bb(client_addr, ret->client_addr))
|
||||||
|
|
Loading…
Reference in a new issue