mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
fix client array insert function
This commit is contained in:
parent
c259c29d1d
commit
3a127e9900
1 changed files with 3 additions and 5 deletions
|
@ -334,17 +334,15 @@ int client_array_go_next_help(char sort_order[], int i, client entry,
|
|||
switch (sort_order[i]) {
|
||||
// bssid-mac
|
||||
case 'b':
|
||||
return mac_is_greater(entry.bssid_addr, next_entry.bssid_addr) &&
|
||||
mac_is_equal(entry.client_addr, next_entry.client_addr);
|
||||
return mac_is_greater(entry.bssid_addr, next_entry.bssid_addr);
|
||||
// client-mac
|
||||
case 'c':
|
||||
return mac_is_greater(entry.client_addr, next_entry.client_addr) &&
|
||||
mac_is_greater(entry.bssid_addr, next_entry.bssid_addr);
|
||||
|
||||
mac_is_equal(entry.bssid_addr, next_entry.bssid_addr);
|
||||
default:
|
||||
return 0;
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int client_array_go_next(char sort_order[], int i, client entry,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue