Merge pull request #32 from berlin-open-wireless-lab/hotfix/client_array

Hotfix/client array
This commit is contained in:
Polynomdivision 2017-12-22 18:19:21 +01:00 committed by GitHub
commit 940e06e8ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -334,35 +334,15 @@ int client_array_go_next_help(char sort_order[], int i, client entry,
switch (sort_order[i]) { switch (sort_order[i]) {
// bssid-mac // bssid-mac
case 'b': case 'b':
return mac_is_greater(entry.bssid_addr, next_entry.bssid_addr) && return mac_is_greater(entry.bssid_addr, next_entry.bssid_addr);
mac_is_equal(entry.client_addr, next_entry.client_addr);
break;
// client-mac // client-mac
case 'c': case 'c':
return mac_is_greater(entry.client_addr, next_entry.client_addr); return mac_is_greater(entry.client_addr, next_entry.client_addr) &&
break; mac_is_equal(entry.bssid_addr, next_entry.bssid_addr);
// frequency
// mac is 5 ghz or 2.4 ghz?
// case 'f':
// return //entry.freq < next_entry.freq &&
// entry.freq < 5000 &&
// next_entry.freq >= 5000 &&
// //entry.freq < 5 &&
// mac_is_equal(entry.client_addr, next_entry.client_addr);
// break;
// signal strength (RSSI)
//case 's':
// return entry.signal < next_entry.signal &&
// mac_is_equal(entry.client_addr, next_entry.client_addr);
// break;
default: default:
return 0;
break; break;
} }
return 0;
} }
int client_array_go_next(char sort_order[], int i, client entry, int client_array_go_next(char sort_order[], int i, client entry,