aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wpa_supplicant/autoscan_exponential.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/autoscan_exponential.c b/wpa_supplicant/autoscan_exponential.c
index 9cd9921..4f743fd 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;
}