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