mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-02-12 16:51:53 +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);
|
||||
|
||||
#ifndef DAWN_CLIENT_SCAN_BC_ONLY
|
||||
client* ret = *client_find_first_c_entry(client_addr);
|
||||
#else
|
||||
client* ret = client_set_bc;
|
||||
while (ret != NULL && !mac_is_equal_bb(client_addr, ret->client_addr))
|
||||
{
|
||||
ret = ret->next_entry_bc;
|
||||
}
|
||||
#else
|
||||
client* ret = *client_find_first_c_entry(client_addr);
|
||||
#endif
|
||||
|
||||
if (ret != NULL && !mac_is_equal_bb(client_addr, ret->client_addr))
|
||||
|
|
Loading…
Reference in a new issue