projects
/
project
/
usteer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
usteer: Fix better candidate not being set in policy
[project/usteer.git]
/
policy.c
diff --git
a/policy.c
b/policy.c
index a7efc06342794a59eeb71aa78ef64c59871542fb..8155e245f4398fe8ee7d77bf95a3603283ee4c2e 100644
(file)
--- a/
policy.c
+++ b/
policy.c
@@
-143,7
+143,7
@@
find_better_candidate(struct sta_info *si_ref, struct uevent *ev, uint32_t requi
ev->select_reasons = reasons;
}
- if (
candidate &&
si->signal > candidate->signal)
+ if (
!candidate ||
si->signal > candidate->signal)
candidate = si;
}