From ccea4eb3e854db485dc1c924bf32bd78b2f2b52f Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 26 Jun 2012 19:47:25 +0300 Subject: [PATCH] Fix autoscan exponential to start with the base value Initial implementation used base^2 as the starting value. Signed-hostap: Jouni Malinen --- wpa_supplicant/autoscan_exponential.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wpa_supplicant/autoscan_exponential.c b/wpa_supplicant/autoscan_exponential.c index 9cd992124..4f743fd14 100644 --- a/wpa_supplicant/autoscan_exponential.c +++ b/wpa_supplicant/autoscan_exponential.c @@ -86,8 +86,8 @@ static int autoscan_exponential_notify_scan(void *priv, if (data->interval <= 0) data->interval = data->base; - - data->interval = data->interval * data->base; + else + data->interval = data->interval * data->base; return data->interval; }