Update scan interval gracefully
authorPontus Fuchs <pontus.fuchs@gmail.com>
Sun, 3 Feb 2013 16:14:05 +0000 (18:14 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 3 Feb 2013 16:14:05 +0000 (18:14 +0200)
commit9e737f08d41ab089b0737d3c002a62c4175be241
tree4dff8685e9dc1375244a3c950cc952c777619eb4
parentc869536ce9ed0755ff0138ccdafeae8a996a5e3a
Update scan interval gracefully

When the scan interval is changed the new interval is effective
after the old interval timer fires off one last time. This can cause
an unacceptable long delay when updating the interval.

Change this behaviour to use MIN(left of old interval, new interval)
for the scan interval following the interval change.

Signed-hostap: Pontus Fuchs <pontus.fuchs@gmail.com>
wpa_supplicant/scan.c
wpa_supplicant/scan.h
wpa_supplicant/wpa_supplicant.c