mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
Merge pull request #32 from berlin-open-wireless-lab/hotfix/client_array
Hotfix/client array
This commit is contained in:
commit
940e06e8ed
1 changed files with 4 additions and 24 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue