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:
parent
1aea2ca325
commit
ccea4eb3e8
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue