Browse Source

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>
Jouni Malinen 12 years ago
parent
commit
ccea4eb3e8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      wpa_supplicant/autoscan_exponential.c

+ 2 - 2
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;
 }