Re: [PATCH] wifi: fix autoscan interval limit

2015-01-21 Thread Patrik Flykt
On Mon, 2015-01-19 at 17:41 -0800, Jason Abele wrote:
 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.

Applied, thanks!

Patrik

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: [PATCH] wifi: fix autoscan interval limit

2015-01-20 Thread Tomasz Bursztyka

Hi Jason,

ACK on this patch.

Thanks,

Tomasz
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


[PATCH] wifi: fix autoscan interval limit

2015-01-19 Thread Jason Abele
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