don't return if ap is not lower!

This commit is contained in:
PolynomialDivision 2017-12-20 18:26:30 +01:00
parent 79b2b029d3
commit 7a7519d420

View file

@ -170,7 +170,10 @@ int better_ap_available(uint8_t bssid_addr[], uint8_t client_addr[], int automat
if (dawn_metric.use_station_count && own_score == score_to_compare)
{
// if ap have same value but station count is different...
return compare_station_count(bssid_addr, probe_array[k].bssid_addr, automatic_kick);
if(compare_station_count(bssid_addr, probe_array[k].bssid_addr, automatic_kick))
{
return 1;
}
}
}
return 0;