Merge pull request #1 from berlin-open-wireless-lab/feature/wifi_freq_fix

Feature/wifi freq fix
This commit is contained in:
Polynomdivision 2017-07-11 00:14:55 +02:00 committed by GitHub
commit f69b1841b3

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);
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)