mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
datastorage: fixed use of wrong client search
This commit is contained in:
parent
7262cf02d0
commit
421324486f
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…
Add table
Add a link
Reference in a new issue