From: Jason Abele ja...@aether.com
The comparison to autoscan-limit is performed before setting the new
autoscan-interval, allowing one interval to overshoot the limit. Fix
this by comparing against the newly calculated interval.
---
plugins/wifi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 68ed5d0..e081f8a 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -1311,7 +1311,7 @@ static gboolean autoscan_timeout(gpointer data)
} else
interval = autoscan-interval * autoscan-base;
- if (autoscan-interval = autoscan-limit)
+ if (interval autoscan-limit)
interval = autoscan-limit;
throw_wifi_scan(wifi-device, scan_callback_hidden);
--
1.9.1
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman