From: Jouni Malinen Date: Tue, 26 Jun 2012 16:47:25 +0000 (+0300) Subject: Fix autoscan exponential to start with the base value X-Git-Tag: hostap_2_0~598 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ccea4eb3e854db485dc1c924bf32bd78b2f2b52f;p=thirdparty%2Fhostap.git Fix autoscan exponential to start with the base value Initial implementation used base^2 as the starting value. Signed-hostap: Jouni Malinen --- 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; }