Fix autoscan exponential to start with the base value

Initial implementation used base^2 as the starting value.

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2012-06-26 19:47:25 +03:00
parent 1aea2ca325
commit ccea4eb3e8

View File

@ -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;
}