diff options
author | Jouni Malinen <j@w1.fi> | 2012-06-26 16:47:25 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-06-26 16:47:25 (GMT) |
commit | ccea4eb3e854db485dc1c924bf32bd78b2f2b52f (patch) | |
tree | 683937643525a062c1cc4bcddb1d312d3fea86f5 /wpa_supplicant/autoscan_exponential.c | |
parent | 1aea2ca3259dc0fb9f5250e55e66c0c9018f13f4 (diff) | |
download | hostap-ccea4eb3e854db485dc1c924bf32bd78b2f2b52f.zip hostap-ccea4eb3e854db485dc1c924bf32bd78b2f2b52f.tar.gz hostap-ccea4eb3e854db485dc1c924bf32bd78b2f2b52f.tar.bz2 |
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>
Diffstat (limited to 'wpa_supplicant/autoscan_exponential.c')
-rw-r--r-- | wpa_supplicant/autoscan_exponential.c | 4 |
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; } |