New freq sorting

This commit is contained in:
PolynomialDivision 2017-07-07 15:46:52 +02:00
parent da1c22eb93
commit b5e9cd5c1b

View file

@ -66,9 +66,13 @@ int go_next_help(char sort_order[], int i, probe_entry entry,
break;
// frequency
// mac is 5 ghz or 2.4 ghz?
case 'f':
return entry.freq < next_entry.freq &&
mac_is_equal(entry.client_addr, next_entry.client_addr);
entry.freq >= 5000 &&
next_entry.freq <= 5000 &&
//entry.freq < 5 &&
mac_is_equal(entry.client_addr, next_entry.client_addr);
break;
// signal strength (RSSI)